XDispatch 0.7.0
 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 &)

Generated on Tue Jun 12 2012 14:11:47 for XDispatch by Doxygen 1.8.0
© 2010-2012 MLBA (about | privacy) All Rights reserved.