OSDN Git Service

BufferQueue: alloc without holding the lock
authorJamie Gennis <jgennis@google.com>
Fri, 5 Oct 2012 01:34:01 +0000 (18:34 -0700)
committerJamie Gennis <jgennis@google.com>
Fri, 12 Oct 2012 03:08:26 +0000 (20:08 -0700)
commit1efe099a51e2231bd938a6afcf66e6584deec0f2
treedf27ff5a7c0c2b30a1f65cd16e1c964045695f34
parentf0c89b28be2e74c26d74b2a21b7228516f8c236f
BufferQueue: alloc without holding the lock

This change makes BufferQueue::dequeueBuffer release its mutex before
allocating new buffers.  This should alleviate lock contention in
SurfaceFlinger where SF's main thread can get blocked waiting for an allocation
operation to complete.

Bug: 7335075
Change-Id: I1b000539cc616a695afab2e9c68507db69e57b13
libs/gui/BufferQueue.cpp