attemptCommand
Single thread a command with the target work-loop.
Declaration
virtual IOReturn attemptCommand(
void *arg0 = 0,
void *arg1 = 0,
void *arg2 = 0,
void *arg3 = 0);Parameters
- arg0:
Parameter for action of command gate, defaults to 0.
- arg1:
Parameter for action of command gate, defaults to 0.
- arg2:
Parameter for action of command gate, defaults to 0.
- arg3:
Parameter for action of command gate, defaults to 0.
Return Value
kIOReturnSuccess if successful. kIOReturnNotPermitted if this event source is currently disabled, kIOReturnNoResources if no action available, kIOReturnCannotLock if lock attempt fails.
Overview
Client function that causes the current action to be called in a single threaded manner. When the executing on a client's thread attemptCommand will fail if the work-loop's gate is closed.