Lunchbox  1.8.0
Public Member Functions | Friends | List of all members
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.
 ThreadID (const ThreadID &from)
 Construct a copy of a thread identifier.
 ~ThreadID ()
 Destruct this thread identifier.
ThreadIDoperator= (const ThreadID &from)
 Assign another thread identifier.
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.

Detailed Description

An utility class to wrap OS-specific thread identifiers.

Definition at line 31 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: