XDispatch 0.7.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Namespaces | Typedefs | Enumerations | Functions
queue.h File Reference
#include "base.h"
#include <iostream>

Go to the source code of this file.

Classes

class  xdispatch::queue
 Provides an interface for representing a dispatch queue and methods that can be called to modify or use the queue. More...

Namespaces

namespace  xdispatch

Typedefs

typedef struct dispatch_queue_s * dispatch_queue_t
 Dispatch queues invoke blocks submitted to them serially in FIFO order.
typedef struct
dispatch_queue_attr_s * 
dispatch_queue_attr_t
 Attribute and policy extensions for dispatch queues.
typedef void(^ dispatch_block_t )(void)
 The prototype of blocks submitted to dispatch queues, which take no arguments and have no return value.

Enumerations

enum  { DISPATCH_QUEUE_PRIORITY_HIGH = 2, DISPATCH_QUEUE_PRIORITY_DEFAULT = 0, DISPATCH_QUEUE_PRIORITY_LOW = -2 }

Functions

void dispatch_async (dispatch_queue_t queue, dispatch_block_t block)
 Submits a block for asynchronous execution on a dispatch queue.
void dispatch_async_f (dispatch_queue_t queue, void *context, dispatch_function_t work)
 Submits a function for asynchronous execution on a dispatch queue.
void dispatch_sync (dispatch_queue_t queue, dispatch_block_t block)
 Submits a block for synchronous execution on a dispatch queue.
void dispatch_sync_f (dispatch_queue_t queue, void *context, dispatch_function_t work)
 Submits a function for synchronous execution on a dispatch queue.
void dispatch_apply (size_t iterations, dispatch_queue_t queue, void(^block)(size_t))
 Submits a block to a dispatch queue for multiple invocations.
void dispatch_apply_f (size_t iterations, dispatch_queue_t queue, void *context, void(*work)(void *, size_t))
 Submits a function to a dispatch queue for multiple invocations.
dispatch_queue_t dispatch_get_current_queue (void)
 Returns the queue on which the currently executing block is running.
dispatch_queue_t dispatch_get_main_queue ()
 Returns the default queue that is bound to the main thread.
dispatch_queue_t dispatch_get_global_queue (long priority, unsigned long flags)
 Returns a well-known global concurrent queue of a given priority level.
dispatch_queue_t dispatch_queue_create (const char *label, dispatch_queue_attr_t attr)
 Creates a new dispatch queue to which blocks may be submitted.
const char * dispatch_queue_get_label (dispatch_queue_t queue)
 Returns the label of the queue that was specified when the queue was created.
void dispatch_set_target_queue (dispatch_object_t object, dispatch_queue_t queue)
 Sets the target queue for the given object.
void dispatch_main (void)
 Execute blocks submitted to the main queue.
void dispatch_after (dispatch_time_t when, dispatch_queue_t queue, dispatch_block_t block)
 Schedule a block for execution on a given queue at a specified time.
void dispatch_after_f (dispatch_time_t when, dispatch_queue_t queue, void *context, dispatch_function_t work)
 Schedule a function for execution on a given queue at a specified time.
std::ostream & xdispatch::operator<< (std::ostream &, const queue *)
std::ostream & xdispatch::operator<< (std::ostream &, const queue &)

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