This fixes segfaults when exiting on windows.
+ inline
+ ~thread() {
+ }
+
template< class Function, class Arg >
explicit thread( Function& f, Arg arg ) {
#ifdef _WIN32
template< class Function, class Arg >
explicit thread( Function& f, Arg arg ) {
#ifdef _WIN32
+ inline thread &
+ operator =(const thread &other) {
+ _native_handle = other._native_handle;
+ return *this;
+ }
+
inline bool
joinable(void) const {
return _native_handle != 0;
inline bool
joinable(void) const {
return _native_handle != 0;
+ ~RelayRunner() {
+ if (thread.joinable()) {
+ thread.join();
+ }
+ }
+
/**
* Thread main loop.
*/
/**
* Thread main loop.
*/