summaryrefslogtreecommitdiff
path: root/include/androidfw/KeyLayoutMap.h
diff options
context:
space:
mode:
author Jeff Brown <jeffbrown@google.com> 2012-02-14 11:53:33 -0800
committer Jeff Brown <jeffbrown@google.com> 2012-02-14 19:27:15 -0800
commite799cb78b4be61d3882e71c6812fa62c9a83fd5d (patch)
tree30c325b3c281fc7d2c13924727dbb5ec23e0c9ad /include/androidfw/KeyLayoutMap.h
parent91e328984c0d1e0f95b3d37f779d9d4fa9bfe8f8 (diff)
Add a barrier mechanism to the MessageQueue.
The synchronization barrier enables selectively blocking execution of synchronous messages until the barrier is released. Asynchronous messages may continue running in the meantime. The barrier is intended to be used to implement more sophisticated scheduling policies related to view hierarchy traversals. While traversals are pending, most messages posted to the message queue must be held up. This is to satisfy the invariant that traversals will occur before subsequently posted messages are handled. The exception to this rule are "asynchronous" messages that represent external events or interrupts that come from other components such as VSYNC pulses, input events or sensor events. Because these messages are typically delivered at arbitrary times, they are independent of traversals or other typical synchronization boundaries. Messages can now be flagged as asynchronous to indicate that they are weakly ordered. Bug: 5721047 Change-Id: I1446dcfbc896f33b48355adc28967ace8c8c9b9b
Diffstat (limited to 'include/androidfw/KeyLayoutMap.h')
0 files changed, 0 insertions, 0 deletions