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