CARMA C++
|
A simple wrapper class that makes use of ::pthread_attr_t easier in a C++ world. More...
#include <carma/util/PthreadAttr.h>
Public Member Functions | |
int | getDetachState () const |
::size_t | getGuardSize () const |
::size_t | getStackSize () const |
const ::pthread_attr_t & | InternalPthreadAttr () const |
Obtain a reference to the internal ::pthread_attr_t. More... | |
::pthread_attr_t & | InternalPthreadAttr () |
Obtain a reference to the internal ::pthread_attr_t. More... | |
PthreadAttr () | |
Construct pthread attributes with the CARMA defaults. More... | |
PthreadAttr (int detachState) | |
Construct pthread attributes with the given detached state More... | |
void | setDetachState (int detachState) |
void | setGuardSize (::size_t guardSize) |
void | setStackSize (::size_t stackSize) |
virtual | ~PthreadAttr () |
Destruct pthread attributes. More... | |
A simple wrapper class that makes use of ::pthread_attr_t easier in a C++ world.
Definition at line 14 of file PthreadAttr.h.
|
explicit |
Construct pthread attributes with the CARMA defaults.
Any internal errors will throw an exception.
|
explicit |
Construct pthread attributes with the given detached state
Any internal errors will throw an exception.
|
virtual |
Destruct pthread attributes.
No exceptions will be thrown and hence internal errors will be ignored as far as clients are concerned (though they may be logged).
const ::pthread_attr_t & carma::util::PthreadAttr::InternalPthreadAttr | ( | ) | const |
Obtain a reference to the internal ::pthread_attr_t.
Definition at line 95 of file PthreadAttr.h.
pthread_attr_t & carma::util::PthreadAttr::InternalPthreadAttr | ( | ) |
Obtain a reference to the internal ::pthread_attr_t.
Definition at line 102 of file PthreadAttr.h.