浏览代码

disabled thread_set_name for OSX (close #568)

Nicolas Cannasse 2 年之前
父节点
当前提交
bbead2381f
共有 1 个文件被更改,包括 2 次插入0 次删除
  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
 	// nothing
 #elif defined(HL_WIN)
 #elif defined(HL_WIN)
 	SetThreadName((DWORD)(int_val)t,name);
 	SetThreadName((DWORD)(int_val)t,name);
+#elif defined(HL_MAC)
+	// pthread_setname_np only possible for current thread
 #else
 #else
 	pthread_setname_np((pthread_t)t,name);
 	pthread_setname_np((pthread_t)t,name);
 #endif
 #endif