am ed3b0f8c: am c4133a6e: am fc1357cf: Merge "logd: in nonblocking read, sched_yield() synchronization"
* commit 'ed3b0f8c9da87fef400c12040044998be0582543': logd: in nonblocking read, sched_yield() synchronization
This commit is contained in:
commit
f25ce3cf60
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue