Serializes execution of the pfnOnce function, making sure it's executed exactly once and that nobody returns from RTOnce before it has executed successfully.
- IPRT like status code returned by pfnOnce.
|pOnce ||Pointer to the execute once variable. |
|pfnOnce ||The function to executed once. |
|pvUser1 ||The first user parameter for pfnOnce. |
|pvUser2 ||The second user parameter for pfnOnce. |
- this isn't safe. a scheduling interrupt on the other cpu while we're in here could cause the thread to be timed out before we manage to wake it up and the event ends up in the wrong state. ditto for posix signals. Update: check the return code; it will return KERN_NOT_WAITING if no one is around.
Definition at line 80 of file req.cpp.