#include <string>
Go to the source code of this file.
Classes | |
class | xdispatch::operation |
An operation is a functor used to define single portions of work to be dispatched to a single queue. More... | |
class | xdispatch::iteration_operation |
class | xdispatch::ptr_operation< T > |
Provides a template functor to wrap a function pointer to a memberfunction of an object as operation. More... | |
class | xdispatch::ptr_iteration_operation< T > |
Provides a template functor to wrap a function pointer to a memberfunction of an object as iteration_operation. More... | |
class | xdispatch::block_operation |
A simple operation for wrapping the given block as an xdispatch::operation. More... | |
class | xdispatch::block_iteration_operation |
A simple iteration operation needed when applying a block several times. More... | |
class | xdispatch::object |
The base class of all xdispatch classes. More... | |
Namespaces | |
namespace | xdispatch |
Defines | |
#define | DISPATCH_DECL(name) typedef struct name##_s *name##_t |
parseOnly | |
#define | DISPATCH_EXTERN extern |
Typedefs | |
typedef void * | dispatch_object_t |
typedef void(* | dispatch_function_t )(void *) |
typedef dispatch_time_t | xdispatch::time |
Stores high resolution times used for timers and timeouts throughout xdispatch. | |
Enumerations | |
enum | xdispatch::queue_priority { xdispatch::HIGH = 2, xdispatch::DEFAULT = 1, xdispatch::LOW = 0 } |
Three priority classes used for the three standard global queues. More... | |
Functions | |
bool | xdispatch::operator== (const dispatch_object_t &, const object &) |
bool | xdispatch::operator!= (const dispatch_object_t &, const object &) |
queue | xdispatch::main_queue () |
Returns the main queue. | |
queue | xdispatch::global_queue (queue_priority p=DEFAULT) |
Returns the global queue associated to the given Priority p. | |
queue | xdispatch::current_queue () |
time | xdispatch::as_dispatch_time (struct tm *) |
dispatch_time_t | xdispatch::as_native_dispatch_time (const time &t) |
struct tm | xdispatch::as_struct_tm (const time &t) |
time | xdispatch::as_delayed_time (uint64_t delay, time base=time_now) |
void | xdispatch::exec () |
Enters the dispatching loop for the main thread. | |
Variables | |
static const time | xdispatch::time_now = DISPATCH_TIME_NOW |
A constant representing a time that will be elapsed immediately. | |
static const time | xdispatch::time_forever = DISPATCH_TIME_FOREVER |
A constant representing infinite time, i.e. | |
static const uint64_t | xdispatch::nsec_per_sec = NSEC_PER_SEC |
The number of nanoseconds per second. | |
static const uint64_t | xdispatch::nsec_per_msec = NSEC_PER_MSEC |
The number of nanoseconds per millisecond. | |
static const uint64_t | xdispatch::nsec_per_usec = NSEC_PER_USEC |
The number of nanoseconds per microsecond. | |
static const uint64_t | xdispatch::usec_per_sec = USEC_PER_SEC |
The number of microseconds per second. |