• 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: MPTask equivalent?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MPTask equivalent?


  • Subject: Re: MPTask equivalent?
  • From: "Hamish Allan" <email@hidden>
  • Date: Mon, 10 Mar 2008 21:41:37 +0000

2008/3/10 Trygve Inda <email@hidden>:

>  The call I need an equivalent to is MPWaitOnQueue... This blocks a thread
>  until a message is received OR it times out. Is there a way to get a similar
>  functionality with NSThread?

The most Cocoa-ish way to do this is probably to use run loops and
NSTimers, though you can also achieve it simply by using POSIX
select().

Hamish
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: MPTask equivalent? (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Stupid question: how do you show an NSWindow?
  • Next by Date: Re: FSFindFolder vs NSSearchPathForDirectoriesInDomains
  • Previous by thread: Re: MPTask equivalent?
  • Next by thread: Re: MPTask equivalent?
  • Index(es):
    • Date
    • Thread