Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: cross-process timeoutable semaphores
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cross-process timeoutable semaphores



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

References: 
 >cross-process timeoutable semaphores (From: "Tyler Sample" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.