Boost logo

Boost :

Subject: Re: [boost] [thread] semaphore
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-09-21 05:36:50

On Saturday 21 September 2013 11:25:58 Tim Blechmann wrote:
> >> 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 ...

Ok, let's keep it simple. This was just an idea.

Boost list run by bdawes at, gregod at, cpdaniel at, john at