summaryrefslogtreecommitdiff
path: root/libs/androidfw/Util.cpp
diff options
context:
space:
mode:
author Bryce Lee <brycelee@google.com> 2022-04-07 18:03:47 -0700
committer Bryce Lee <brycelee@google.com> 2022-04-08 03:02:22 +0000
commitcb10414f11e8488f757fb7040d83bff281543502 (patch)
treeafbdc30612c8b775db6b846acb208f82eeb59a5a /libs/androidfw/Util.cpp
parent107e9d5042af106ff4e03808ed08c7a997709f0b (diff)
Improve Condition Monitor threading.
This change modifies condition monitor to enforce all modifications to the callback listen happen on the same thread. First, the executor now is specified to be the @Main variant. Secondly, callbacks can no longer be added in the constructor. Only allowing callbacks to be introduced post construction enforces this modification is always on the main thread. Test: atest ConditionMonitorTest Fixed: 228135569 Change-Id: I376479d104e0252eb3a39d768299ce86a78e11a1
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions