am c4133a6e: am fc1357cf: Merge "logd: in nonblocking read, sched_yield() synchronization"

* commit 'c4133a6e28e586f598e5c92f2b9e769178d92b3f':
  logd: in nonblocking read, sched_yield() synchronization
This commit is contained in:
Mark Salyzyn 2014-09-29 22:17:09 +00:00 committed by Android Git Automerger
commit ed3b0f8c9d

View file

@ -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;
}