Lunchbox  1.13.0
Multi-threaded C++ toolbox library for all application developers creating high-performance multi-threaded programs.
lunchbox::ThreadID Class Reference

An utility class to wrap OS-specific thread identifiers. More...

#include <threadID.h>

+ Collaboration diagram for lunchbox::ThreadID:

Public Member Functions

 ThreadID ()
 Construct a new, zero thread identifier. More...
 
 ThreadID (const ThreadID &from)
 Construct a copy of a thread identifier. More...
 
 ~ThreadID ()
 Destruct this thread identifier. More...
 
ThreadIDoperator= (const ThreadID &from)
 Assign another thread identifier. More...
 
bool operator== (const ThreadID &rhs) const
 
bool operator!= (const ThreadID &rhs) const
 
bool operator< (const ThreadID &rhs) const
 

Friends

class Thread
 
std::ostream & operator<< (std::ostream &os, const ThreadID &)
 Print the thread to the given output stream. More...
 

Detailed Description

An utility class to wrap OS-specific thread identifiers.

Definition at line 32 of file threadID.h.

Constructor & Destructor Documentation

lunchbox::ThreadID::ThreadID ( )

Construct a new, zero thread identifier.

Version
1.0
lunchbox::ThreadID::ThreadID ( const ThreadID from)

Construct a copy of a thread identifier.

Version
1.0
lunchbox::ThreadID::~ThreadID ( )

Destruct this thread identifier.

Version
1.0

Member Function Documentation

bool lunchbox::ThreadID::operator!= ( const ThreadID rhs) const
Returns
true if the threads are different, false otherwise.
Version
1.0
ThreadID& lunchbox::ThreadID::operator= ( const ThreadID from)

Assign another thread identifier.

Version
1.0
bool lunchbox::ThreadID::operator== ( const ThreadID rhs) const
Returns
true if the threads are equal, false if not.
Version
1.0

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const ThreadID  
)
friend

Print the thread to the given output stream.


The documentation for this class was generated from the following file: