Re: MPTask equivalent?
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