Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c95afaa2 authored by Josh Gao's avatar Josh Gao
Browse files

Fix darwin build break.

Bug: http://b/31468413
Change-Id: I12fdf0977213eefc7043939964070025a672881a
parent c9c555b8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -26,8 +26,8 @@
namespace android {
namespace base {

static std::mutex quick_exit_mutex;
static std::vector<void(*)()> quick_exit_handlers;
static auto& quick_exit_mutex = *new std::mutex();
static auto& quick_exit_handlers = *new std::vector<void (*)()>();

void quick_exit(int exit_code) {
  std::lock_guard<std::mutex> lock(quick_exit_mutex);