My Project
|
Public Member Functions | |
Scheduler (int n) | |
void | set_maxconcurrency (int n) |
int | get_maxconcurrency () |
int | threadpool_size (ThreadPool *pool) |
virtual | ~Scheduler () |
ThreadState * | getThread (int i) |
void | shutdown (bool wait) |
void | addThread (ThreadPool *owner, ThreadState *thread) |
void | attachJob (ThreadPool *pool, Job *job) |
void | detachJob (Job *job) |
void | queueJob (Job *job) |
void | broadcastJob (ThreadPool *pool, 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) |
Static Public Member Functions | |
static void | notifyDeps (Scheduler *scheduler, Job *job) |
static void * | main (ThreadState *ts, void *arg) |
Data Fields | |
Lock | lock |
Private Attributes | |
bool | single_threaded |
size_t | jobid |
int | nthreads |
int | maxconcurrency |
int | running |
bool | shutting_down |
int | shutdown_counter |
vector< ThreadState * > | threads |
vector< ThreadPool * > | thread_owners |
priority_queue< Job *, vector< Job * >, JobCompare > | global_queue |
vector< JobQueue * > | thread_queues |
vector< Job * > | pending |
ConditionVariable | cond |
ConditionVariable | response |
Friends | |
class | Job |
|
inline |
Definition at line 1673 of file shared.cc.
|
inlinevirtual |
Definition at line 1696 of file shared.cc.
|
inline |
|
inline |
Definition at line 1742 of file shared.cc.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Definition at line 1856 of file shared.cc.
Definition at line 1829 of file shared.cc.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |