Embedded Multicore Building Blocks V1.0.0
Public Member Functions | Friends | List of all members
embb::base::Thread::ID Class Reference

Unique ID of a thread that can be compared with other IDs. More...

#include <thread.h>

Public Member Functions

 ID ()
 Constructs an empty (invalid) thread ID. More...
 

Friends

template<class CharT , class Traits >
std::basic_ostream< CharT, Traits > & operator<< (std::basic_ostream< CharT, Traits > &os, Thread::ID id)
 The streaming operator needs to access the internal ID representation. More...
 
bool operator== (Thread::ID lhs, Thread::ID rhs)
 Comparison operators need to access the internal ID representation. More...
 
bool operator!= (Thread::ID lhs, Thread::ID rhs)
 Compares two thread IDs for inequality. More...
 

Detailed Description

Unique ID of a thread that can be compared with other IDs.

Constructor & Destructor Documentation

embb::base::Thread::ID::ID ( )

Constructs an empty (invalid) thread ID.

Friends And Related Function Documentation

template<class CharT , class Traits >
std::basic_ostream<CharT, Traits>& operator<< ( std::basic_ostream< CharT, Traits > &  os,
Thread::ID  id 
)
friend

The streaming operator needs to access the internal ID representation.

Returns
Reference to the stream
Parameters
[in,out]osStream to which thread ID is written
[in]idThread ID to be written
bool operator== ( Thread::ID  lhs,
Thread::ID  rhs 
)
friend

Comparison operators need to access the internal ID representation.

Returns
true if thread IDs are equivalent, otherwise false
Parameters
[in]lhsLeft-hand side of equality sign
[in]rhsRight-hand side of equality sign
bool operator!= ( Thread::ID  lhs,
Thread::ID  rhs 
)
friend

Compares two thread IDs for inequality.

Returns
true if thread IDs are not equivalent, otherwise false
Parameters
[in]lhsLeft-hand side of inequality sign
[in]rhsLeft-hand side of inequality sign