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

Commit 7e2675ca authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder: fix flake-mode build

Compile option to introduce random sleeps in the code to make
certain rare flakes easier to reproduce.

Bug: 244325464
Test: binderRpcTest w/ flake mode on
Change-Id: Ibb78987f6550e0d6ec39b527059bfc517ea04492
parent 00a54e41
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ using base::StringPrintf;
#if RPC_FLAKE_PRONE
void rpcMaybeWaitToFlake() {
    [[clang::no_destroy]] static std::random_device r;
    [[clang::no_destroy]] static std::mutex m;
    [[clang::no_destroy]] static RpcMutex m;
    unsigned num;
    {
        RpcMutexLockGuard lock(m);