Re: cross-process timeoutable semaphores
Re: cross-process timeoutable semaphores
- Subject: Re: cross-process timeoutable semaphores
- From: "Stephen J. Butler" <email@hidden>
- Date: Wed, 11 Nov 2009 18:50:14 -0600
On Wed, Nov 11, 2009 at 4:18 PM, Tyler Sample <email@hidden> wrote:
> POSIX semaphores won't work because OSX doesn't support sharing them across
> processes. Carbon's "multiprocess services" also, strangely, doesn't work
> across process boundaries. System V style semaphores are missing the
> ability to timeout (on OSX)
Untested theory: can you use alarm/setitimer with SysV style
semaphores? I believe SIGALRM is a synchronous signal, so would be
delivered on the thread you set it on. Then you'd check your sem calls
for EINTR.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden