X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Fos_thread.hpp;h=2c3f73250893e9beba24bc84781acedf8f1e4775;hb=HEAD;hp=5e9577b56a29924b816abfc10fb16baf70a9bb14;hpb=21fa369365d53eb15f2f11dfc39333b974aaa1a2;p=apitrace diff --git a/common/os_thread.hpp b/common/os_thread.hpp index 5e9577b..2c3f732 100644 --- a/common/os_thread.hpp +++ b/common/os_thread.hpp @@ -301,7 +301,7 @@ namespace os { } inline - thread(thread &other) : + thread(const thread &other) : _native_handle(other._native_handle) { } @@ -312,7 +312,7 @@ namespace os { DWORD id = 0; _native_handle = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)f, (LPVOID)arg, 0, &id); #else - pthread_create(&_native_handle, NULL, ( void *(*) (void *))f, arg); + pthread_create(&_native_handle, NULL, (void *(*) (void *))f, (void *)arg); #endif }