Boost logo

Boost :

Subject: Re: [boost] [thread] semaphore
From: Tim Blechmann (tim_at_[hidden])
Date: 2013-09-21 05:25:58


>> get_value() may
>> need some special care, but i'm not planning to add this to the
>> sync::semaphore interface, because it is not widely supported: neither
>> mach nor dispatch semaphores provide an API for accessing the semaphore
>> count.
>
> Maybe support it conditionally, like mutex::native_handle()?

i'd rather keep the API simple and not expose the internal type, but
this is just a gut feeling ...

cheers, tim




Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk