Add optional retry parameter to EventFlag wait()

This is to add an option to automatically retry waiting
in case of spurious EventFlag wakes.

Also modify ReadBlocking()/WriteBlocking() implementation to use
the new wait API with automatic retry.

Bug: 35995121
Test: fmq_test passes, all unit tests which use
readBlocking()/writeBlocking() methods will test the new retry parameter.

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