diff options
| author | 2021-03-03 17:42:23 +0800 | |
|---|---|---|
| committer | 2021-03-12 20:04:42 +0800 | |
| commit | f1b7c7be8130bd86c827a2acc05fa4aa58344e52 (patch) | |
| tree | 4b92c4af3af7d2489097babd3f8ad74515086d92 /libs/gui/BLASTBufferQueue.cpp | |
| parent | 870da0041ca5ef9f2c4c54ff5282acf95373ed5e (diff) | |
Prevent waiting synchronous case if transaction applied first
Currently, transaction would be queued and apply in the main thread,
if a given transaction would wish to apply synchronously. We may wait
it in binder thread until the transaction has been applied, but if
'applyTransactionState' comes first, it would cause redundant waiting.
To prevent this, we use the CountDownLatch in transaction to wait the
synchronous state, it will wait until transactions applied and committed.
Bug: 181480169
Test: libsurfaceflinger_unittest SurfaceFlinger_test libgui_test
Change-Id: I1fe56296810cdeadeae5b37ae9b4bd00d9e689c3
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions