소스 검색

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
 #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