Lunchbox  1.6.0
Public Member Functions | Static Public Attributes | Friends
lunchbox::ThreadID Class Reference

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

#include <threadID.h>

+ Collaboration diagram for lunchbox::ThreadID:

List of all members.

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

Static Public Attributes

static const ThreadID ZERO
 a 'NULL' thread identifier

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

Construct a new, zero thread identifier.

Version:
1.0

Construct a copy of a thread identifier.

Version:
1.0

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: