Updating event flag API and docs so that Wait() returns the flags that woke up the thread.
Authored by: funkenstein.sw@gmail.com 2013-08-18
Parent: [r78]
Child: [r80]