XDispatch 0.7.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Namespaces | Typedefs | Functions
semaphore.h File Reference
#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 &)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Sun Jan 27 2013 21:21:52 for XDispatch by Doxygen 1.7.6.1
© 2010-2013 MLBA (about | privacy) All Rights reserved.