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
Merged-In: Id97024f18086fe26efd00d01391e453bf4e9cb3f
3 files changed