[libdispatch-dev] [PATCH 09/17] portability

Robert Watson robert at fledge.watson.org
Mon Nov 2 03:41:11 PST 2009


On Fri, 30 Oct 2009, Kevin Van Vechten wrote:

>> Yep.  OTOH, on Linux you'd probably want to use futexes which perform the 
>> same optimization (if you don't do the system call, the futex is just an 
>> "int").  So long-term some of these wrappers would move into src/shims.
>>
>> Let's just leave aside this fix.
>
> To be clear, the posix semaphore implementation is currently broken due to 
> this race condition.

I've now corrected this in r84 by eliminating lazy allocation of POSIX 
semaphores.

Robert N M Watson
Computer Laboratory
University of Cambridge



More information about the libdispatch-dev mailing list