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. build/
  2. jdwpspy/
  3. src/
  4. test/
  5. tools/
  6. .gitignore
  7. Android.mk