withWorkLoop(IOWorkLoop *)
Primary factory method for the IOCommandPool class
Declaration
static IOCommandPool *withWorkLoop(
IOWorkLoop *inWorkLoop);Parameters
- inWorkLoop:
The workloop that this command pool should synchronize with.
Return Value
Returns a pointer to an instance of IOCommandPool if successful, otherwise NULL.
Overview
The withWorkLoop method is what is known as a factory method. It creates a new instance of an IOCommandPool and returns a pointer to that object.