19 #ifndef LUNCHBOX_THREADID_H
20 #define LUNCHBOX_THREADID_H
23 #include <lunchbox/compiler.h>
29 namespace detail {
class ThreadID; }
39 LUNCHBOX_API
ThreadID(
const ThreadID& from );
45 LUNCHBOX_API ThreadID&
operator = (
const ThreadID& from );
48 LUNCHBOX_API
bool operator == (
const ThreadID& rhs )
const;
54 LUNCHBOX_API
bool operator != (
const ThreadID& rhs )
const;
57 bool operator < (
const ThreadID& rhs )
const;
60 detail::ThreadID*
const _impl;
64 std::ostream&
operator << ( std::ostream& os,
const ThreadID& );
70 #endif // LUNCHBOX_THREADID_H
ThreadID & operator=(const ThreadID &from)
Assign another thread identifier.
friend std::ostream & operator<<(std::ostream &os, const ThreadID &)
Print the thread to the given output stream.
Defines export visibility macros for library Lunchbox.
Utility class to execute code in a separate execution thread.
An utility class to wrap OS-specific thread identifiers.
~ThreadID()
Destruct this thread identifier.
bool operator!=(const ThreadID &rhs) const
bool operator==(const ThreadID &rhs) const
ThreadID()
Construct a new, zero thread identifier.
Abstraction layer and common utilities for multi-threaded programming.
std::ostream & operator<<(std::ostream &os, const Array< T > &array)
Pretty-print all members of the array.