FROM : Hamish Allan
DATE : Mon Mar 10 22:41:37 2008
2008/3/10 Trygve Inda <<email_removed>>:
> 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
DATE : Mon Mar 10 22:41:37 2008
2008/3/10 Trygve Inda <<email_removed>>:
> 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
| Related mails | Author | Date |
|---|---|---|
| Trygve Inda | Feb 20, 20:03 | |
| j o a r | Feb 20, 20:22 | |
| Charles Steinman | Feb 20, 21:09 | |
| Adam P Jenkins | Feb 20, 22:32 | |
| Trygve Inda | Feb 21, 16:10 | |
| Trygve Inda | Feb 21, 16:14 | |
| j o a r | Feb 21, 16:20 | |
| Scott Ribe | Feb 22, 17:33 | |
| Trygve Inda | Mar 10, 22:05 | |
| Hamish Allan | Mar 10, 22:41 | |
| Ken Thomases | Mar 11, 06:40 |






Cocoa mail archive

