Giving time for async notifiers
Giving time for async notifiers
- Subject: Giving time for async notifiers
- From: "Richard.Fox" <email@hidden>
- Date: Thu, 07 Feb 2002 18:09:40 +1100
I'm still hacking away at our old pre-Carbon OT code, which uses
asynchronous notifiers for reverse name lookups. Part of the issue I suspect
is that the polling loop (yes, I know that's bad) to check for results that
have returned from the notifier. Is there a way that I can pause my
processing to give time for notifiers to fire? At the moment we use
WaitNextEvent (which also gives time to the GUI). The function Delay() has
been around for a long time, if I use that does it actually give time away,
or does it hog the processor? And are notifiers considered to be running in
a separate cooperative thread, albeit one generated by OT, such that
YieldToAnyThread() will give more time for notifiers to execute?
I guess I could try some sort of timer strategy, where I send out my
requests, then fire a timer at intervals to check the results of the
notifiers, but this doesn't fit well into our architecture which has common
code for Windoze and Unix.
Any suggestions gratefully received,
Richard
--
Richard Fox
Mac Developer
Quest Software
email@hidden www.quest.com
--------------------------------------------------------------------
_______________________________________________
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.