#include <cafe/mp.h> BOOL MPWaitTaskQWithTimeout(MPTaskQ *taskq, u32 wmask, OSTimeNanoseconds timeout);
|wmask||The mask that is used to wait on items entering the
The following multiple or state masks are usable.
|timeout||Minimum number of nanoseconds to wait before returning
Adhering to an exact number of nanoseconds is not guaranteed. This function only has a time-inspection granularity roughly equivalent to the processor timebase.
TRUE: The specified
MPTasks available based on the waitmask.
FALSE: The specified
MPTaskQ has no
MPTasks available based on the waitmask or has timed out waiting.
MPWaitTaskQWithTimeout waits on the specified
MPTaskQ to contain
MPTasks to run.
MPTasks can be added by any processor core that calls
|Multiple threads||This function is not thread-safe.|
|Callbacks||Do not call this function from any callback function.|
2013-05-08 Automated cleanup pass.
2012-08-21 Cleanup Pass
2012-05-14 Fixed See Also.
2012-05-04 Matched the actual prototype.
2010-08-23 Initial version.