Lunchbox  1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

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

Friends

class Thread
 
LUNCHBOX_API 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.

Deprecated:
Use Boost.Thread

Definition at line 35 of file threadID.h.

Constructor & Destructor Documentation

LUNCHBOX_API lunchbox::ThreadID::ThreadID ( )

Construct a new, zero thread identifier.

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

Construct a copy of a thread identifier.

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

Destruct this thread identifier.

Version
1.0

Member Function Documentation

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

Assign another thread identifier.

Version
1.0
LUNCHBOX_API 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

LUNCHBOX_API 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: