Re: Calling MPNotifyQueue from OT notifier
Re: Calling MPNotifyQueue from OT notifier
- Subject: Re: Calling MPNotifyQueue from OT notifier
- From: Quinn <email@hidden>
- Date: Mon, 15 Mar 2004 10:05:29 +0000
At 16:34 +0300 13/3/04, Igor garnov wrote:
Is it safe to call MPNotifyQueue from my OT notifier callback?
Yes. MPNotifyQueue is documented as interrupt safe.
<
http://developer.apple.com/technotes/tn/tn1104.html>
This is a fundamental part of OTMP, so I know from personal
experience that it works.
<
http://developer.apple.com/samplecode/Sample_Code/Archive/Networking/OTMP.htm>
Are some caveats I should consider
As mentioned in the technote, you must reserve space on the queue
using MPSetQueueReserve if you intend to notify the queue at
interrupt time.
I am going to use it on both Mac OS 9 and X.
It should work just fine on both platforms.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.