Esempio n. 1
0
IOCommandPool *
IOUSBCommandPool::withWorkLoop(IOWorkLoop * inWorkLoop)
{
	IOCommandPool * me = new IOUSBCommandPool;
    
	if (me && !me->initWithWorkLoop(inWorkLoop)) {
		me->release();
		return 0;
	}
	
	return me;
}
Esempio n. 2
0
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;
}