19 #ifndef LUNCHBOX_THREADID_H
20 #define LUNCHBOX_THREADID_H
23 #include <lunchbox/compiler.h>
29 namespace detail {
class ThreadID; }
42 LUNCHBOX_API
ThreadID(
const ThreadID& from );
48 LUNCHBOX_API ThreadID&
operator = (
const ThreadID& from );
51 LUNCHBOX_API
bool operator == (
const ThreadID& rhs )
const;
57 LUNCHBOX_API
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
LUNCHBOX_API bool operator!=(const ThreadID &rhs) const
Defines export visibility macros for library Lunchbox.
Utility class to execute code in a separate execution thread.
LUNCHBOX_API ThreadID()
Construct a new, zero thread identifier.
An utility class to wrap OS-specific thread identifiers.
friend LUNCHBOX_API std::ostream & operator<<(std::ostream &os, const ThreadID &)
Print the thread to the given output stream.
LUNCHBOX_API ThreadID & operator=(const ThreadID &from)
Assign another thread identifier.
LUNCHBOX_API bool operator==(const ThreadID &rhs) const
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.
LUNCHBOX_API ~ThreadID()
Destruct this thread identifier.