lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
Manages a simple thread. More...
#include <thread.h>
Inherits noncopyable.
Public Member Functions | |
thread () | |
Default constructor. | |
template<class Callable > | |
thread (const Callable &callable) | |
Constructs a thread. Throws a runtime_error on failure. | |
~thread () | |
Destructor. | |
void | detach () |
Detaches the managed thread from this thread object. | |
LEAN_INLINE bool | joinable () const |
Checks if this thread is valid. | |
void | join () |
Waits for the managed thread to exit. | |
LEAN_INLINE HANDLE | native_handle () const |
Gets the native handle. |
Manages a simple thread.