X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=common%2Fos_thread.hpp;h=f3ae210053da2b08ef711f516a92a3be433860b1;hb=75af867d17044b6e3992e579c35915e35d2a7e78;hp=51ac54f3864d6ddf69b94d4413bd124e184c8707;hpb=8917aeafc32928b4bcbd668a3f20f5dae101c8d8;p=apitrace diff --git a/common/os_thread.hpp b/common/os_thread.hpp index 51ac54f..f3ae210 100644 --- a/common/os_thread.hpp +++ b/common/os_thread.hpp @@ -374,6 +374,10 @@ namespace os { { } + inline + ~thread() { + } + template< class Function, class Arg > explicit thread( Function& f, Arg arg ) { #ifdef _WIN32 @@ -384,6 +388,12 @@ namespace os { #endif } + inline thread & + operator =(const thread &other) { + _native_handle = other._native_handle; + return *this; + } + inline bool joinable(void) const { return _native_handle != 0;