Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IOSyncer Deprecated. Replacement?



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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >IOSyncer Deprecated. Replacement? (From: "Duane Murphy" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.