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

Commit 2f207af8 authored by Mark Salyzyn's avatar Mark Salyzyn Committed by Android Git Automerger
Browse files

am 7391575a: logd: in nonblocking read, sched_yield() synchronization

* commit '7391575a':
  logd: in nonblocking read, sched_yield() synchronization
parents 2d83ca4c 7391575a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -92,6 +92,11 @@ bool LogReader::onDataAvailable(SocketClient *cli) {

    bool nonBlock = false;
    if (strncmp(buffer, "dumpAndClose", 12) == 0) {
        // Allow writer to get some cycles, and wait for pending notifications
        sched_yield();
        LogTimeEntry::lock();
        LogTimeEntry::unlock();
        sched_yield();
        nonBlock = true;
    }