#include <thpthd.h>
Inheritance diagram for PthreadThreadGrp
Public Methods | |
PthreadThreadGrp () | |
PthreadThreadGrp (const PthreadThreadGrp &, int nthread=-1) | |
PthreadThreadGrp (const Ref< KeyVal > &) | |
~PthreadThreadGrp () | |
int | start_threads () |
Starts the threads running. More... | |
int | wait_threads () |
Wait for all the threads to complete. More... | |
Ref<ThreadLock> | new_lock () |
Return a local object. | |
ThreadGrp* | clone (int nthread=-1) |
Create a ThreadGrp like the current one. More... |
|
Create a ThreadGrp like the current one. If nthread is given it will be the number of threads in the new group. If nthread is -1, the number of threads in the current group will be used. If cloning is not supported 0 will be returned. Reimplemented from ThreadGrp. |
|
Starts the threads running. Thread 0 will be run by the thread that calls start_threads. Reimplemented from ThreadGrp. |
|
Wait for all the threads to complete. This must be called before start_threads is called again or the object is destroyed. Reimplemented from ThreadGrp. |