IOCommandPool * IOUSBCommandPool::withWorkLoop(IOWorkLoop * inWorkLoop) { IOCommandPool * me = new IOUSBCommandPool; if (me && !me->initWithWorkLoop(inWorkLoop)) { me->release(); return 0; } return me; }
IOCommandPool *IOCommandPool:: commandPool(IOService * inOwner, IOWorkLoop *inWorkLoop, UInt32 inSize) { IOCommandPool * me = new IOCommandPool; if (me && !me->init(inOwner, inWorkLoop, inSize)) { me->release(); return 0; } return me; }