2
0
Branimir Karadžić 10 жил өмнө
parent
commit
8164eb05e9

+ 6 - 6
include/bx/thread.h

@@ -139,13 +139,14 @@ namespace bx
 			return m_exitCode;
 			return m_exitCode;
 		}
 		}
 
 
-		void setThreadName(const char* name)
+		void setThreadName(const char* _name)
 		{
 		{
-#if BX_PLATFORM_WINDOWS
-#elif BX_PLATFORM_OSX|BX_PLATFORM_IOS
-			pthread_setname_np(name);
+#if BX_PLATFORM_OSX|BX_PLATFORM_IOS
+			pthread_setname_np(_name);
 #elif BX_PLATFORM_POSIX
 #elif BX_PLATFORM_POSIX
-			pthread_setname_np(m_handle, name);
+			pthread_setname_np(m_handle, _name);
+#else
+			BX_UNUSED(_name);
 #endif // BX_PLATFORM_
 #endif // BX_PLATFORM_
 		}
 		}
 
 
@@ -189,7 +190,6 @@ namespace bx
 		uint32_t m_stackSize;
 		uint32_t m_stackSize;
 		int32_t m_exitCode;
 		int32_t m_exitCode;
 		bool m_running;
 		bool m_running;
-        char m_name[BX_CONFIG_THREAD_NAME_LENGTH];
 	};
 	};
 
 
 #if BX_PLATFORM_WINDOWS
 #if BX_PLATFORM_WINDOWS