IOCommandGate vs ISyncer
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Duane Murphy