replicant-frameworks_native/libs
Antoine Labour 78014f32da BufferQueue: release mutex while allocating. DO NOT MERGE
BufferQueueProducer::allocateBuffers used to keep the BufferQueueCore
mutex while doing the buffer allocation, which would cause the consumer
(which also needs the mutex) to block if the allocation takes a long
time.
Instead, release the mutex while doing the allocation, and grab it again
before filling the slots. Keep a bool state and a condvar to prevent
other producers from trying to allocate the slots while the mutex is
released.

Bug: 11792166

Change-Id: I4ab1319995ef892be2beba892f1fdbf50ce0416d
(cherry picked from commit ea96044470)
2014-07-22 19:45:55 +00:00
..
binder Remove Parcel::writeIntPtr. 2014-06-12 15:26:39 +01:00
diskusage Report actual disk space used 2013-05-01 10:10:59 -07:00
gui BufferQueue: release mutex while allocating. DO NOT MERGE 2014-07-22 19:45:55 +00:00
input Fixup more potential issues / warnings in string formats 2014-06-10 13:03:17 -07:00
ui am 38c9e132: am c1ffd351: am bd20e551: Merge "Use asynchronous lock/unlock API" 2014-05-12 18:18:47 +00:00