28 #ifndef _util_group_thpthd_h
29 #define _util_group_thpthd_h
36 #include <util/group/thread.h>
45 pthread_attr_t *attr_;
48 void init_priority(
int,
int);
void add_thread(int i, Thread *t)
Assigns a Thread object to each thread.
Definition: thpthd.h:57
int start_threads()
Starts the threads running.
A template class that maintains references counts.
Definition: ref.h:332
The Thread abstract class defines an interface which must be implemented by classes wishing to be run...
Definition: thread.h:79
virtual void add_thread(int threadnum, Thread *thread)
Assigns a Thread object to each thread.
Ref< ThreadLock > new_lock()
Return a local object.
int nthread() const
The number of threads that will be run by start_thread.
Definition: thread.h:111
The ThreadGrp abstract class provides a means to manage separate threads of control.
Definition: thread.h:92
int wait_threads()
Wait for all the threads to complete.
ThreadGrp * clone(int nthread=-1)
Create a ThreadGrp like the current one.
The PthreadThreadGrp class privides a concrete thread group appropriate for an environment where pthr...
Definition: thpthd.h:42
Generated at Sun Jan 26 2020 23:33:05 for MPQC
2.3.1 using the documentation package Doxygen
1.8.16.