summaryrefslogtreecommitdiff
path: root/libs/input/KeyLayoutMap.cpp
diff options
context:
space:
mode:
author Tianyu Jiang <tianyuj@google.com> 2018-10-30 17:40:58 -0700
committer Tianyu Jiang <tianyuj@google.com> 2018-11-01 01:02:48 +0000
commite2cdec984975dd5752936d8c38e9353e8a2a0ebb (patch)
treea32d53ddb198af5dc43ef2448586193491c0aa8d /libs/input/KeyLayoutMap.cpp
parenteb3e844052273a032d54735d20522bb195f38feb (diff)
Load with memory_order_acquire
std::atomic::load operation is with std::memory_order_seq_cst by default. However, load operation in bufferhubd and buffer hub client does not need sequentially-consistent ordering which is provided by std::memory_order_seq_cst. This change changes our load operation with std::memory_order_acquire so that no reads or writes in the current thread can be reordered before this load, all writes in other threads that release the same atomic variable are visible in the current thread. Test: all tests are still passing. Test: vega still working. Bug: 112007999 Bug: 118718713 Change-Id: I2ac75cc306c3de35bf3d953b353f9a9442bdebbc
Diffstat (limited to 'libs/input/KeyLayoutMap.cpp')
0 files changed, 0 insertions, 0 deletions