Lunchbox
1.4.0
|
An utility class to wrap OS-specific thread identifiers. More...
#include <threadID.h>
Public Member Functions | |
ThreadID () | |
Construct a new, zero thread identifier. | |
ThreadID (const ThreadID &from) | |
Construct a copy of a thread identifier. | |
~ThreadID () | |
Destruct this thread identifier. | |
ThreadID & | operator= (const ThreadID &from) |
Assign another thread identifier. | |
bool | operator== (const ThreadID &rhs) const |
bool | operator!= (const ThreadID &rhs) const |
Static Public Attributes | |
static const ThreadID | ZERO |
a 'NULL' thread identifier | |
Friends | |
class | Thread |
std::ostream & | operator<< (std::ostream &os, const ThreadID &) |
Print the thread to the given output stream. |
An utility class to wrap OS-specific thread identifiers.
Definition at line 30 of file threadID.h.
Construct a new, zero thread identifier.
lunchbox::ThreadID::ThreadID | ( | const ThreadID & | from | ) |
Construct a copy of a thread identifier.
Destruct this thread identifier.
bool lunchbox::ThreadID::operator!= | ( | const ThreadID & | rhs | ) | const |
Assign another thread identifier.
bool lunchbox::ThreadID::operator== | ( | const ThreadID & | rhs | ) | const |
std::ostream& operator<< | ( | std::ostream & | os, |
const ThreadID & | |||
) | [friend] |
Print the thread to the given output stream.