commit d8c1a3d91ad6ba1718225b93500fbb9a4a52f7fe parent 9ca5e450d66a8c3e22bbf6a3c5084bbeea9682fe Author: Michael Savage <mikejsavage@gmail.com> Date: Wed Oct 26 20:00:03 +0300 64bit thread IDs Diffstat:
unix_thread.h | | | 6 | +++--- |
diff --git a/unix_thread.h b/unix_thread.h @@ -24,11 +24,11 @@ inline void thread_init( Thread * thread, ThreadCallback callback, void * data ) } } -inline u32 thread_getid() { +inline u64 thread_getid() { #if PLATFORM_LINUX - return checked_cast< u32 >( pthread_self() ); + return checked_cast< u64 >( pthread_self() ); #elif PLATFORM_OPENBSD - return checked_cast< u32 >( getthrid() ); + return checked_cast< u64 >( getthrid() ); #else #error new platform #endif