The thread ID is a unique identifier for each thread.
More...
#include <thread.h>
The thread ID is a unique identifier for each thread.
- See also
- thread::get_id()
Definition at line 209 of file thread.h.
Mezzanine::Threading::ThreadId::ThreadId |
( |
| ) |
|
|
inline |
Default constructor.
The default constructed ID is that of thread without a thread of execution.
Definition at line 215 of file thread.h.
Mezzanine::Threading::ThreadId::ThreadId |
( |
unsigned long int |
aId | ) |
|
|
inline |
Creation from long.
- Parameters
-
aId | The OS provided long to create an ID from. |
Definition at line 220 of file thread.h.
Mezzanine::Threading::ThreadId::ThreadId |
( |
const ThreadId & |
aId | ) |
|
|
inline |
Copy constructor.
- Parameters
-
aId | The other id to create a copy of. |
Definition at line 225 of file thread.h.
Assignment Operator.
- Parameters
-
aId | The right hand operand during assignment. |
- Returns
- A reference to the left hand operand after it has been assigned.
Definition at line 231 of file thread.h.
Inequality Comparison.
- Parameters
-
aId1 | Left hand operand. |
aId2 | Right hand operand. |
- Returns
- False boolean value if the OS specific IDs match and true otherwise.
Definition at line 248 of file thread.h.
Greater than Comparison.
- Parameters
-
aId1 | Left hand operand. |
aId2 | Right hand operand. |
- Returns
- A consistent value to allow for sorting/ordering of threads.
Definition at line 262 of file thread.h.
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const ThreadId & |
obj |
|
) |
| |
|
friend |
Output Streaming operator.
- Parameters
-
os | The output stream to send the id into. |
obj | the streamed id. |
- Returns
- A reference to the output stream to allow for operator chaining.
Definition at line 284 of file thread.h.
Greater than or equal to Comparison.
- Parameters
-
aId1 | Left hand operand. |
aId2 | Right hand operand. |
- Returns
- A consistent value to allow for sorting/ordering of threads.
Definition at line 255 of file thread.h.
Equality Comparison.
- Parameters
-
aId1 | Left hand operand. |
aId2 | Right hand operand. |
- Returns
- True boolean value if the OS specific IDs match and false otherwise.
Definition at line 241 of file thread.h.
Less than Comparison.
- Parameters
-
aId1 | Left hand operand. |
aId2 | Right hand operand. |
- Returns
- A consistent value to allow for sorting/ordering of threads.
Definition at line 276 of file thread.h.
Less than or equal to Comparison.
- Parameters
-
aId1 | Left hand operand. |
aId2 | Right hand operand. |
- Returns
- A consistent value to allow for sorting/ordering of threads.
Definition at line 269 of file thread.h.
The documentation for this class was generated from the following file:
- /home/sqeaky/Code/MezzanineFresh/Mezzanine/src/Threading/thread.h