#include <dispatch/base.h>#include <memory>Go to the source code of this file.
Classes | |
| class | xdispatch::semaphore |
| Wraps dispatch semaphores as provided by libDispatch. More... | |
Namespaces | |
| namespace | xdispatch |
Typedefs | |
| typedef struct dispatch_semaphore_s * | dispatch_semaphore_t |
| A counting semaphore. | |
Functions | |
| dispatch_semaphore_t | dispatch_semaphore_create (long value) |
| Creates new counting semaphore with an initial value. | |
| long | dispatch_semaphore_wait (dispatch_semaphore_t dsema, dispatch_time_t timeout) |
| Wait (decrement) for a semaphore. | |
| long | dispatch_semaphore_signal (dispatch_semaphore_t dsema) |
| Signal (increment) a semaphore. | |
| std::ostream & | xdispatch::operator<< (std::ostream &, const semaphore *) |
| std::ostream & | xdispatch::operator<< (std::ostream &, const semaphore &) |
| bool | xdispatch::operator== (const dispatch_semaphore_t &, const semaphore &) |
| bool | xdispatch::operator!= (const dispatch_semaphore_t &, const semaphore &) |