My Project
|
Public Member Functions | |
ThreadPool (Scheduler *sched, int n) | |
ThreadPool (int n) | |
~ThreadPool () | |
ThreadState * | getThread (int i) |
void | shutdown (bool wait) |
void | addThread (ThreadState *thread) |
void | attachJob (Job *job) |
void | detachJob (Job *job) |
void | queueJob (Job *job) |
void | broadcastJob (Job *job) |
void | cancelDeps (Job *job) |
void | cancelJob (Job *job) |
void | waitJob (Job *job) |
void | clearThreadState () |
Public Member Functions inherited from LibThread::SharedObject | |
SharedObject () | |
virtual | ~SharedObject () |
void | set_type (int type_init) |
int | get_type () |
void | set_name (std::string &name_init) |
void | set_name (const char *s) |
std::string & | get_name () |
void | incref (int by=1) |
long | decref () |
long | getref () |
virtual BOOLEAN | op2 (int op, leftv res, leftv a1, leftv a2) |
virtual BOOLEAN | op3 (int op, leftv res, leftv a1, leftv a2, leftv a3) |
Data Fields | |
Scheduler * | scheduler |
int | nthreads |
LibThread::ThreadPool::ThreadPool | ( | Scheduler * | sched, |
int | n | ||
) |
LibThread::ThreadPool::ThreadPool | ( | int | n | ) |
Definition at line 1917 of file shared.cc.
void LibThread::ThreadPool::addThread | ( | ThreadState * | thread | ) |
void LibThread::ThreadPool::attachJob | ( | Job * | job | ) |
void LibThread::ThreadPool::broadcastJob | ( | Job * | job | ) |
void LibThread::ThreadPool::cancelDeps | ( | Job * | job | ) |
void LibThread::ThreadPool::cancelJob | ( | Job * | job | ) |
void LibThread::ThreadPool::clearThreadState | ( | ) |
void LibThread::ThreadPool::detachJob | ( | Job * | job | ) |
ThreadState * LibThread::ThreadPool::getThread | ( | int | i | ) |
void LibThread::ThreadPool::queueJob | ( | Job * | job | ) |
void LibThread::ThreadPool::waitJob | ( | Job * | job | ) |