#include <ThreadPool.h>
ThreadPool::ThreadPool |
( |
| ) |
|
|
protected |
ThreadPool::~ThreadPool |
( |
| ) |
|
galois::substrate::ThreadPool::ThreadPool |
( |
const ThreadPool & |
| ) |
|
|
delete |
galois::substrate::ThreadPool::ThreadPool |
( |
ThreadPool && |
| ) |
|
|
delete |
void ThreadPool::beKind |
( |
| ) |
|
void ThreadPool::burnPower |
( |
unsigned |
num | ) |
|
void ThreadPool::cascade |
( |
bool |
fastmode | ) |
|
|
protected |
void ThreadPool::decascade |
( |
| ) |
|
|
protected |
void ThreadPool::destroyCommon |
( |
| ) |
|
|
protected |
unsigned galois::substrate::ThreadPool::getCumulativeMaxSocket |
( |
unsigned |
tid | ) |
const |
|
inline |
static unsigned galois::substrate::ThreadPool::getCumulativeMaxSocket |
( |
| ) |
|
|
inlinestatic |
unsigned galois::substrate::ThreadPool::getLeader |
( |
unsigned |
tid | ) |
const |
|
inline |
static unsigned galois::substrate::ThreadPool::getLeader |
( |
| ) |
|
|
inlinestatic |
unsigned galois::substrate::ThreadPool::getLeaderForSocket |
( |
unsigned |
pid | ) |
const |
|
inline |
unsigned galois::substrate::ThreadPool::getMaxCores |
( |
| ) |
const |
|
inline |
unsigned galois::substrate::ThreadPool::getMaxNumaNodes |
( |
| ) |
const |
|
inline |
unsigned galois::substrate::ThreadPool::getMaxSockets |
( |
| ) |
const |
|
inline |
unsigned galois::substrate::ThreadPool::getMaxThreads |
( |
| ) |
const |
|
inline |
return the number of threads supported by the thread pool on the current machine
unsigned galois::substrate::ThreadPool::getMaxUsableThreads |
( |
| ) |
const |
|
inline |
return the number of non-reserved threads in the pool
unsigned galois::substrate::ThreadPool::getNumaNode |
( |
unsigned |
tid | ) |
const |
|
inline |
static unsigned galois::substrate::ThreadPool::getNumaNode |
( |
| ) |
|
|
inlinestatic |
unsigned galois::substrate::ThreadPool::getSocket |
( |
unsigned |
tid | ) |
const |
|
inline |
static unsigned galois::substrate::ThreadPool::getSocket |
( |
| ) |
|
|
inlinestatic |
static unsigned galois::substrate::ThreadPool::getTID |
( |
| ) |
|
|
inlinestatic |
void ThreadPool::initThread |
( |
unsigned |
tid | ) |
|
|
protected |
bool galois::substrate::ThreadPool::isLeader |
( |
unsigned |
tid | ) |
const |
|
inline |
static bool galois::substrate::ThreadPool::isLeader |
( |
| ) |
|
|
inlinestatic |
bool galois::substrate::ThreadPool::isRunning |
( |
| ) |
const |
|
inline |
template<typename... Args>
void galois::substrate::ThreadPool::run |
( |
unsigned |
num, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
execute work on all threads a simple wrapper for run
void ThreadPool::runDedicated |
( |
std::function< void(void)> & |
f | ) |
|
run function in a dedicated thread until the threadpool exits
void ThreadPool::runInternal |
( |
unsigned |
num | ) |
|
|
protected |
execute work on num threads
void ThreadPool::threadLoop |
( |
unsigned |
tid | ) |
|
|
protected |
unsigned galois::substrate::ThreadPool::masterFastmode |
|
protected |
unsigned galois::substrate::ThreadPool::reserved |
|
protected |
bool galois::substrate::ThreadPool::running |
|
protected |
std::vector<per_signal*> galois::substrate::ThreadPool::signals |
|
protected |
std::vector<std::thread> galois::substrate::ThreadPool::threads |
|
protected |
std::function<void(void)> galois::substrate::ThreadPool::work |
|
protected |
The documentation for this class was generated from the following files: