• 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
Giving time for async notifiers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Giving time for async notifiers
      • From: Eric Gundrum <email@hidden>
  • Prev by Date: RWIN?
  • Next by Date: Re: Old OT Docs?
  • Previous by thread: RWIN?
  • Next by thread: Re: Giving time for async notifiers
  • Index(es):
    • Date
    • Thread