#include <MTmgr.hh>
Inheritance diagram for RazorBack::MTmgrdetach_:
Public Methods | |
MTmgrdetach_ () | |
ctor. | |
virtual | ~MTmgrdetach_ () |
dtor. | |
size_t | launch (size_t Threadno, Threadstartfn_ Startfn, void *Arg) |
launch(Threadno, Startfn, Arg): launches Threadno detached threads. More... | |
void | reap () |
reap(): reaps all threads launched by the calling object. More... | |
void | reap (pthread_t ID) |
reap(ID): performs a cancel operation on thread ID. More... | |
Private Methods | |
MTmgrdetach_ (const MTmgrdetach_ &) | |
MTmgrdetach_& | operator= (const MTmgrdetach_ &) |
Private Attributes | |
pthread_attr_t | Attr |
POSIX thread attribute. |
The MTmgrdetach_ object sends cancel signals to them when reaping and does not wait for them.
Definition at line 184 of file MTmgr.hh.
|
ctor.
|
|
dtor.
|
|
|
|
launch(Threadno, Startfn, Arg): launches Threadno detached threads. These start execution in the global C function pointed to by Startfn, with argument Arg. The threads will have default attributes otherwise, in particular cancellation state enabled, cancellation type deferred. Returns the number of threads actually launched. Reimplemented from RazorBack::MTmgrbase_. |
|
reap(): reaps all threads launched by the calling object. This happens by sending a pthread_cancel() request on all thread IDs that are in the internal list of the calling object. The threads will be canceled only if they did not change their original cancellation state! The method returns immediately (no wait on other threads). Reimplemented from RazorBack::MTmgrbase_. Referenced by ~MTmgrdetach_(). |
|
reap(ID): performs a cancel operation on thread ID. Does nothing if the thread ID is invalid. The threads will be canceled only if they did not change their original cancellation state! The method returns immediately (no wait on other threads). Reimplemented from RazorBack::MTmgrbase_. |
|
|
|
POSIX thread attribute.
|