Simulacrum
1.2
|
#include <SPool.h>
Public Types | |
typedef std::function< void() > | SFunction |
typedef unsigned | SDependency_t |
typedef unsigned long | SThreadID_t |
Public Member Functions | |
SPool () | |
SPool (int poolsize) | |
~SPool () | |
void | addJob (SFunction, bool imdispatch=true) |
void | addJob (SFunction, std::initializer_list< SDependency_t > depends, bool imdispatch=true) |
SDependency_t | addJob_p (SFunction, std::initializer_list< SDependency_t > depends, bool imdispatch=true) |
void | wait () |
void | setPoolSize (int) |
int | jobs () |
int | poolSize () |
int | activeThreads () |
void | dispatcher (SThreadID_t=0, SDependency_t=0) |
Static Public Member Functions | |
static void | fireAndForget (SPool::SFunction) |
typedef unsigned Simulacrum::SPool::SDependency_t |
typedef std::function< void() > Simulacrum::SPool::SFunction |
typedef unsigned long Simulacrum::SPool::SThreadID_t |
SPool::SPool | ( | ) |
SPool::SPool | ( | int | poolsize | ) |
SPool::~SPool | ( | ) |
int SPool::activeThreads | ( | ) |
void SPool::addJob | ( | SFunction | newjob, |
bool | imdispatch = true |
||
) |
void SPool::addJob | ( | SFunction | newjob, |
std::initializer_list< SDependency_t > | depends, | ||
bool | imdispatch = true |
||
) |
SPool::SDependency_t SPool::addJob_p | ( | SFunction | , |
std::initializer_list< SDependency_t > | depends, | ||
bool | imdispatch = true |
||
) |
void SPool::dispatcher | ( | SThreadID_t | cleanup = 0 , |
SDependency_t | providc = 0 |
||
) |
|
static |
int SPool::jobs | ( | ) |
int SPool::poolSize | ( | ) |
void SPool::setPoolSize | ( | int | newsize | ) |
void SPool::wait | ( | ) |