#include <MTmgr.hh>
Inheritance diagram for RazorBack::MTmgrjoin_:
Public Methods | |
MTmgrjoin_ () | |
default ctor. | |
virtual | ~MTmgrjoin_ () |
dtor: reap all threads still running. | |
virtual size_t | launch (size_t Threadno, Threadstartfn_ Startfn, void *Arg) |
launch(Threadno, Startfn, Arg): launches Threadno joinable threads. More... | |
virtual void | reap () |
reap(): reaps all threads launched by the calling object. More... | |
virtual void | reap (pthread_t ID) |
reap(ID): performs a join operation on thread ID (waits on it if necessary). More... | |
Private Methods | |
MTmgrjoin_ (const MTmgrjoin_ &) | |
MTmgrjoin_& | operator= (const MTmgrjoin_ &) |
Most useful in situation where the original thread just has to launch a few "working" threads and then collects them before the program exits.
Definition at line 135 of file MTmgr.hh.
|
default ctor.
|
|
dtor: reap all threads still running.
|
|
|
|
launch(Threadno, Startfn, Arg): launches Threadno joinable threads. These start execution in the global C function pointed to by Startfn, with argument Arg. The threads will have default attributes. Returns the number of threads actually launched. Reimplemented from RazorBack::MTmgrbase_. |
|
reap(): reaps all threads launched by the calling object. This happens by performing a pthread_join() on all thread IDs that are in the internal list of the calling object, i.e. invocation of this method means that the invoking thread must wait until all threads are reaped. Reimplemented from RazorBack::MTmgrbase_. Referenced by ~MTmgrjoin_(). |
|
reap(ID): performs a join operation on thread ID (waits on it if necessary). Does nothing if the thread ID is invalid. Reimplemented from RazorBack::MTmgrbase_. |
|
|