diff options
| author | 2022-01-11 08:53:24 -0800 | |
|---|---|---|
| committer | 2022-02-15 16:40:46 -0800 | |
| commit | bc6c8601faa2367ac9177fdd5ac498a3922ddb29 (patch) | |
| tree | c586b8b369a49f5514f90f51f2c9150d23d25e0c /libs/gui/BufferQueueThreadState.cpp | |
| parent | 9f410f0adfb4f44fa149cbc7589b13ea88007157 (diff) | |
SF: Make thread safety macros zero-cost
ON_MAIN_THREAD(mDisplays) incurred a copy. In other words, this failed:
decltype(auto) displays = ON_MAIN_THREAD(mDisplays);
static_assert(std::is_lvalue_reference_v<decltype(displays)>);
Bug: 182939859
Test: static_assert
Test: simpleperf
Change-Id: I19900d0350b832cd71457e5a6f11fa65b16e0412
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions