|
cisst-saw
|
ThreadId type. More...
#include <osaThread.h>
Public Member Functions | |
| osaThreadId (void) | |
| ~osaThreadId () | |
| bool | Equal (const osaThreadId &other) const |
| bool | operator== (const osaThreadId &other) const |
| bool | operator!= (const osaThreadId &other) const |
| bool | operator() (const osaThreadId &lhs, const osaThreadId &rhs) const |
| void | ToStream (std::ostream &outputStream) const |
Friends | |
| class | osaThread |
| class | osaThreadTest |
| CISST_EXPORT osaThreadId | osaGetCurrentThreadId (void) |
ThreadId type.
Abstract the thread Id based on the OS. Some OSs use a native C type (e.g., unsigned long) to identify threads but others use more complex
structs hence the need for a class to define the == and << operators.
| osaThreadId::osaThreadId | ( | void | ) |
Default constructor. Does nothing but checking that the internal structure use to store the OS specific information for osaThreadId is large enough using CMN_ASSERT.
| osaThreadId::~osaThreadId | ( | ) |
Default destructor. Does nothing.
| bool osaThreadId::Equal | ( | const osaThreadId & | other | ) | const |
Method to compare two thread Ids
|
inline |
Operator to compare two thread Ids
| bool osaThreadId::operator() | ( | const osaThreadId & | lhs, |
| const osaThreadId & | rhs | ||
| ) | const |
Method to compare two thread Ids, used to sort in std::map.
|
inline |
Operator to compare two thread Ids
| void osaThreadId::ToStream | ( | std::ostream & | outputStream | ) | const |
Method to compare two thread Ids, used to sort in std::map.
Operator to compare two thread Ids, used to sort in std::map.
Print to stream
|
friend |
Get the ID of the currently executing thread.
|
friend |
|
friend |
1.8.6