21 Sep
2013
21 Sep
'13
9:36 a.m.
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.