Handle spurious futex wakes in EventFlag

Sometimes a return value of 0 from FUTEX_WAIT_BITSET can mean
a spurious wakeup. EventFlag should examine the futex
word's value on a wake and return an appropriate
error code.

Test: Fixes issue in b/35813113.
Bug: 35813113

Change-Id: Id055b225f394ebc2fd3dcafa24edffc7a228df10
2 files changed
tree: 32cc256bcd38f212f5ce88691e4de24bfc71f023
  1. benchmarks/
  2. include/
  3. tests/
  4. Android.bp
  5. EventFlag.cpp