Simplify ConditionVariable and avoid potential race.

Make waiters maintain mutex contenders rather than signal/broadcast
(eliminates awoken count). Avoids race where a spurious Signal wake
could remove a Broadcast contender from the mutex.

Change-Id: I5c3e36878c9fa2db09f5dc31d24a0a6222a61731
2 files changed
tree: cbd318570af04229cf44fa5ab62d8b240f300b39
  1. .gitignore
  2. Android.mk
  3. build/
  4. jdwpspy/
  5. src/
  6. test/
  7. tools/