AppleOpenSource/xnu-6153.101.6/iokit/Kernel/IOPMrootDomain.cpp
/* PMAssertionsTracker::handleCreateAssertion
 * Perform assertion work on the PM workloop. Do not call directly.
 */
:handleCreateAssertion
Perform assertion work on the PM workloop. Do not call directly.
: handleCreateAssertion Perform assertion work on the PM workloop . Do not call directly .
IOReturn
PMAssertionsTracker::handleCreateAssertion(OSData *newAssertion)
{
	ASSERT_GATED();
	if (newAssertion) {
		IOLockLock(assertionsArrayLock);
		assertionsArray->setObject(newAssertion);
		IOLockUnlock(assertionsArrayLock);
		newAssertion->release();
		tabulate();
	}
	return kIOReturnSuccess;
}
IOReturn PMAssertionsTracker :: handleCreateAssertion ( OSData * newAssertion ) { ASSERT_GATED ( ) ; if ( newAssertion ) { IOLockLock ( assertionsArrayLock ) ; assertionsArray -> setObject ( newAssertion ) ; IOLockUnlock ( assertionsArrayLock ) ; newAssertion -> release ( ) ; tabulate ( ) ; } return kIOReturnSuccess ; }
PMAssertionsTracker::handleCreateAssertion
 Perform assertion work on the PM workloop.
PMAssertionsTracker :: handleCreateAssertion Perform assertion work on the PM workloop .