28#ifndef _util_group_thpthd_h
29#define _util_group_thpthd_h
32#include <util/group/thread.h>
41 pthread_attr_t *attr_;
44 void init_priority(
int,
int);
The PthreadThreadGrp class privides a concrete thread group appropriate for an environment where pthr...
Definition thpthd.h:38
void add_thread(int i, Thread *t, int priority)
Like add_thread(threadnum, thread), but assign a priority that the thread is to use.
void add_thread(int i, Thread *t)
Assigns a Thread object to each thread.
Definition thpthd.h:53
ThreadGrp * clone(int nthread=-1)
Create a ThreadGrp like the current one.
Ref< ThreadLock > new_lock()
Return a local object.
int start_threads()
Starts the threads running.
int wait_threads()
Wait for all the threads to complete.
A template class that maintains references counts.
Definition ref.h:361
The ThreadGrp abstract class provides a means to manage separate threads of control.
Definition thread.h:88
int nthread() const
The number of threads that will be run by start_thread.
Definition thread.h:107
virtual void add_thread(int threadnum, Thread *thread)
Assigns a Thread object to each thread.
The Thread abstract class defines an interface which must be implemented by classes wishing to be run...
Definition thread.h:75
Contains all MPQC code up to version 3.
Definition mpqcin.h:14