IOCommandGate vs ISyncer
IOCommandGate vs ISyncer
- Subject: IOCommandGate vs ISyncer
- From: "Duane Murphy" <email@hidden>
- Date: Wed, 13 Aug 2008 10:06:27 -0700
There are several messages in the archive that indicates that IOSyncer
is deprecated and should not be used in new code. IOCommandGate should
be used in preference.
I'm working in an IOStorage subclass where I need to serialize the
completion routine for a read or write. This seems to be what IOSyncer
is designed to do. Is there a "recipe" for how to accomplish this with
an IOCommandGate?
It's not entirely how this would be done with an IOCommandGate.
I need to call a routine that is asynchronous and indicates completion
by a completion routine. However, the function I am writing is
synchronous and cannot return until the asynchronous request is finished.
What is the recipe for this seemingly simple task (that IOSyncer handles
very nicely) with IOCommandGate.
Thanks for the help,
...Duane
_______________________________________________
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