• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: IOSyncer Deprecated. Replacement?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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

  • Prev by Date: Re: programmatically adding MIME types from an installer
  • Next by Date: Re: programmatically adding MIME types from an installer
  • Previous by thread: IOSyncer Deprecated. Replacement?
  • Next by thread: programmatically adding MIME types from an installer
  • Index(es):
    • Date
    • Thread