Embedded Multicore Building Blocks V1.0.0
Classes | Functions

Threads supporting thread-to-core affinities. More...

Classes

class  embb::base::Thread
 Represents a thread of execution. More...
 

Functions

bool embb::base::operator== (Thread::ID lhs, Thread::ID rhs)
 Compares two thread IDs for equality. More...
 
bool embb::base::operator!= (Thread::ID lhs, Thread::ID rhs)
 Compares two thread IDs for inequality. More...
 
template<class CharT , class Traits >
std::basic_ostream< CharT, Traits > & embb::base::operator<< (std::basic_ostream< CharT, Traits > &os, Thread::ID id)
 Writes thread ID to stream. More...
 

Detailed Description

Threads supporting thread-to-core affinities.

Function Documentation

bool embb::base::operator== ( Thread::ID  lhs,
Thread::ID  rhs 
)

Compares two thread IDs for equality.

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 embb::base::operator!= ( Thread::ID  lhs,
Thread::ID  rhs 
)

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
template<class CharT , class Traits >
std::basic_ostream<CharT, Traits>& embb::base::operator<< ( std::basic_ostream< CharT, Traits > &  os,
Thread::ID  id 
)

Writes thread ID to stream.

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