Browse Source

disabled thread_set_name for OSX (close #568)

Nicolas Cannasse 2 năm trước cách đây
mục cha
commit
bbead2381f
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/std/thread.c

+ 2 - 0
src/std/thread.c

@@ -937,6 +937,8 @@ HL_PRIM void hl_thread_set_name( hl_thread *t, const char *name ) {
 	// nothing
 #elif defined(HL_WIN)
 	SetThreadName((DWORD)(int_val)t,name);
+#elif defined(HL_MAC)
+	// pthread_setname_np only possible for current thread
 #else
 	pthread_setname_np((pthread_t)t,name);
 #endif