• 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
Re: NSConnection and independant queuing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSConnection and independant queuing


  • Subject: Re: NSConnection and independant queuing
  • From: Wade Tregaskis <email@hidden>
  • Date: Wed, 5 May 2004 13:30:57 +1000

That is, I want to enqueue tasks in the worker thread's runLoop.

My question is: will this work? the NSConnection documentation doesn't make it clear whether the "oneway" keyword requires the target thread's runLoop to actually consume the message before coming back from the message send operation, or if it is just enqueuing it in the target thread's incoming messages list (if such a thing exists).

The message will be queued by the receiver, in order of receipt, pending dispatch at the next run through the run loop (note: you can't extract pending messages manually). So, assuming your worker threads use a run loop (or can be made to; a custom one per thread is trivial to construct) you're quite set.

Wade Tregaskis (aim: wadetregaskis)
-- Sed quis custodiet ipsos custodes?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >NSConnection and independant queuing (From: Florent Pillet <email@hidden>)

  • Prev by Date: Re: Need to release "constant objects"?
  • Next by Date: Re: Need to release "constant objects"?
  • Previous by thread: NSConnection and independant queuing
  • Next by thread: Re: NSConnection and independant queuing
  • Index(es):
    • Date
    • Thread