commit | bc6c8601faa2367ac9177fdd5ac498a3922ddb29 | [log] [tgz] |
---|---|---|
author | Dominik Laskowski <domlaskowski@google.com> | Tue Jan 11 08:53:24 2022 -0800 |
committer | Dominik Laskowski <domlaskowski@google.com> | Tue Feb 15 16:40:46 2022 -0800 |
tree | c586b8b369a49f5514f90f51f2c9150d23d25e0c | |
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