vSMC
vSMC: Scalable Monte Carlo
Public Member Functions | Protected Member Functions | List of all members
vsmc::DispatchQueueBase Class Reference

Base class of DispatchQueue. More...

#include <vsmc/gcd/dispatch_queue.hpp>

Public Member Functions

void after (::dispatch_time_t when,::dispatch_block_t block) const
 
void after_f (::dispatch_time_t when, void *context,::dispatch_function_t f) const
 
void apply (std::size_t iterations, void(^block)(std::size_t)) const
 
void apply_f (std::size_t iterations, void *context, void(*work)(void *, std::size_t)) const
 
void async (::dispatch_block_t block) const
 
void async_f (void *context,::dispatch_function_t work) const
 
void barrier_async (::dispatch_block_t block) const
 
void barrier_async_f (void *context,::dispatch_function_t work) const
 
void barrier_sync (::dispatch_block_t block) const
 
void barrier_sync_f (void *context,::dispatch_function_t work) const
 
const char * get_label () const
 
void * get_specific (const void *key) const
 
void resume () const
 
void set_specific (const void *key, void *context,::dispatch_function_t destructor) const
 
template<typename DispatchType >
void set_target_queue (const DispatchObject< DispatchType > &object) const
 
void set_target_queue (::dispatch_object_t object) const
 
void suspend () const
 
void sync (::dispatch_block_t block) const
 
void sync_f (void *context,::dispatch_function_t work) const
 
- Public Member Functions inherited from vsmc::DispatchObject< ::dispatch_queue_t >
 DispatchObject (const ::dispatch_queue_t &object, bool retained)
 Create a DispatchObject from its C-type object. More...
 
 DispatchObject (const DispatchObject< ::dispatch_queue_t > &other)
 
 DispatchObject (DispatchObject< ::dispatch_queue_t > &&other)
 
 ~DispatchObject ()
 
void * get_context () const
 
::dispatch_queue_t object () const
 Return the underlying Dispatch object. More...
 
void object (::dispatch_queue_tobj)
 Set the underlying Dispatch object and retain it. More...
 
DispatchObject< ::dispatch_queue_t > & operator= (const DispatchObject< ::dispatch_queue_t > &other)
 
DispatchObject< ::dispatch_queue_t > & operator= (DispatchObject< ::dispatch_queue_t > &&other)
 
void set_context (void *context) const
 
void set_finalizer_f (::dispatch_function_t finalizer) const
 

Protected Member Functions

 DispatchQueueBase (::dispatch_queue_t queue, bool retained)
 

Detailed Description

Base class of DispatchQueue.

Definition at line 53 of file dispatch_queue.hpp.

Constructor & Destructor Documentation

vsmc::DispatchQueueBase::DispatchQueueBase ( ::dispatch_queue_t  queue,
bool  retained 
)
inlineprotected

Definition at line 126 of file dispatch_queue.hpp.

Member Function Documentation

void vsmc::DispatchQueueBase::after ( ::dispatch_time_t  when,
::dispatch_block_t  block 
) const
inline

Definition at line 103 of file dispatch_queue.hpp.

void vsmc::DispatchQueueBase::after_f ( ::dispatch_time_t  when,
void *  context,
::dispatch_function_t  f 
) const
inline

Definition at line 80 of file dispatch_queue.hpp.

void vsmc::DispatchQueueBase::apply ( std::size_t  iterations,
void(^)(std::size_t)  block 
) const
inline

Definition at line 106 of file dispatch_queue.hpp.

void vsmc::DispatchQueueBase::apply_f ( std::size_t  iterations,
void *  context,
void(*)(void *, std::size_t)  work 
) const
inline

Definition at line 84 of file dispatch_queue.hpp.

void vsmc::DispatchQueueBase::async ( ::dispatch_block_t  block) const
inline

Definition at line 109 of file dispatch_queue.hpp.

void vsmc::DispatchQueueBase::async_f ( void *  context,
::dispatch_function_t  work 
) const
inline

Definition at line 88 of file dispatch_queue.hpp.

void vsmc::DispatchQueueBase::barrier_async ( ::dispatch_block_t  block) const
inline

Definition at line 116 of file dispatch_queue.hpp.

void vsmc::DispatchQueueBase::barrier_async_f ( void *  context,
::dispatch_function_t  work 
) const
inline

Definition at line 95 of file dispatch_queue.hpp.

void vsmc::DispatchQueueBase::barrier_sync ( ::dispatch_block_t  block) const
inline

Definition at line 119 of file dispatch_queue.hpp.

void vsmc::DispatchQueueBase::barrier_sync_f ( void *  context,
::dispatch_function_t  work 
) const
inline

Definition at line 98 of file dispatch_queue.hpp.

const char* vsmc::DispatchQueueBase::get_label ( ) const
inline

Definition at line 61 of file dispatch_queue.hpp.

void* vsmc::DispatchQueueBase::get_specific ( const void *  key) const
inline

Definition at line 65 of file dispatch_queue.hpp.

void vsmc::DispatchQueueBase::resume ( ) const
inline

Definition at line 57 of file dispatch_queue.hpp.

void vsmc::DispatchQueueBase::set_specific ( const void *  key,
void *  context,
::dispatch_function_t  destructor 
) const
inline

Definition at line 68 of file dispatch_queue.hpp.

template<typename DispatchType >
void vsmc::DispatchQueueBase::set_target_queue ( const DispatchObject< DispatchType > &  object) const
inline

Definition at line 74 of file dispatch_queue.hpp.

void vsmc::DispatchQueueBase::set_target_queue ( ::dispatch_object_t  object) const
inline

Definition at line 77 of file dispatch_queue.hpp.

void vsmc::DispatchQueueBase::suspend ( ) const
inline

Definition at line 59 of file dispatch_queue.hpp.

void vsmc::DispatchQueueBase::sync ( ::dispatch_block_t  block) const
inline

Definition at line 112 of file dispatch_queue.hpp.

void vsmc::DispatchQueueBase::sync_f ( void *  context,
::dispatch_function_t  work 
) const
inline

Definition at line 91 of file dispatch_queue.hpp.