diff options
| author | 2012-02-16 14:41:10 -0800 | |
|---|---|---|
| committer | 2012-02-16 14:58:33 -0800 | |
| commit | 0f85ce3837633a03460a61405087a5d28a4bf955 (patch) | |
| tree | 9aad2847d51b81de52dd546559f2805bb761d974 /libs/utils/ZipFileRO.cpp | |
| parent | a175a5b7ea3682cb58cca7f9726d0b8171cd549d (diff) | |
Improve MessageQueue sync barrier implementation.
Instead of acquiring and releasing a barrier using an up/down
counter, we post a message to the queue that represents the
barrier. This is a more natural representation of the barrier
and better matches what we want to do with it: stall messages
behind the barrier in the queue while allowing messages earlier
in the queue to run as usual.
Refactored the MessageQueue a little bit to simplify the quit
logic and to better encapsulate the invariant that all
messages within the queue must have a valid target. Messages
without targets are used to represent barriers.
Bug: 5721047
Change-Id: Id297d9995474b5e3f17d24e302c58168e0a00394
Diffstat (limited to 'libs/utils/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions