Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit bc6c8601 authored by Dominik Laskowski's avatar Dominik Laskowski
Browse files

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
parent 9f410f0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment