Re: IOSyncer Deprecated. Replacement?
Re: IOSyncer Deprecated. Replacement?
- Subject: Re: IOSyncer Deprecated. Replacement?
- From: Chris Sarcone <email@hidden>
- Date: Thu, 3 Jan 2008 16:53:31 -0800
Duane --
Recompiling my kext for Leopard has revealed that IOSyncer is entirely deprecated.
Is there a replacement? What should be done instead?
Some variation of either IOCommandGate::runAction + IOCommandGate::commandSleep()/commandWakeup() on the completion path, or IOLockLock()/IOLockSleep()/IOLockWakeup()/IOLockUnlock(), whichever is more convenient. Typically, you have something like:
IOLockLock(); while ( !notDone ) { IOLockSleep();
} IOLockUnlock();
or
commandGate->runAction(someMethod);
In
object::someMethod() {
while ( !notDone )
{ commandGate->commandSleep();
}
}
And the completion routine would call commandGate->commandWakeup().
Hope this helps. It appears that IOStorage still necessarily uses IOSyncer, so it can't be too far gone. :-)
It will be fixed in due time ;-).
-- Chris
------------------ 6 Infinite Loop M/S 306-2MS Cupertino CA 95014 phone: (408) 974-4033 fax: (408) 862-7577 email: email@hidden |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden