Lines 1-25
Link Here
|
1 |
--- 3rdparty/bx/include/bx/thread.h.orig 2015-09-30 06:29:01 UTC |
1 |
--- 3rdparty/bx/include/bx/thread.h-orig 2015-11-16 13:43:22.686731000 -0500 |
2 |
+++ 3rdparty/bx/include/bx/thread.h |
2 |
+++ 3rdparty/bx/include/bx/thread.h 2015-11-16 13:44:10.294191000 -0500 |
3 |
@@ -14,6 +14,10 @@ using namespace Windows::Foundation; |
3 |
@@ -14,6 +14,11 @@ |
4 |
using namespace Windows::System::Threading; |
4 |
using namespace Windows::System::Threading; |
5 |
#endif |
5 |
#endif |
6 |
|
6 |
|
7 |
+#if BX_PLATFORM_FREEBSD |
7 |
+#if BX_PLATFORM_FREEBSD |
8 |
+# include <pthread_np.h> |
8 |
+# include <pthread_np.h> |
9 |
+#endif |
9 |
+#endif |
10 |
+ |
10 |
+ |
|
|
11 |
+ |
11 |
#include "sem.h" |
12 |
#include "sem.h" |
12 |
|
13 |
|
13 |
#if BX_CONFIG_SUPPORTS_THREADING |
14 |
#if BX_CONFIG_SUPPORTS_THREADING |
14 |
@@ -149,8 +153,10 @@ namespace bx |
15 |
@@ -149,8 +154,10 @@ |
15 |
{ |
16 |
{ |
16 |
#if BX_PLATFORM_OSX || BX_PLATFORM_IOS |
17 |
#if BX_PLATFORM_OSX || BX_PLATFORM_IOS |
17 |
pthread_setname_np(_name); |
18 |
pthread_setname_np(_name); |
18 |
-#elif BX_PLATFORM_LINUX || BX_PLATFORM_FREEBSD |
19 |
-#elif (BX_PLATFORM_LINUX && defined(__GLIBC__)) || BX_PLATFORM_FREEBSD |
19 |
+#elif BX_PLATFORM_LINUX |
20 |
+#elif (BX_PLATFORM_LINUX && defined(__GLIBC__)) |
20 |
pthread_setname_np(m_handle, _name); |
21 |
pthread_setname_np(m_handle, _name); |
21 |
+#elif BX_PLATFORM_FREEBSD |
22 |
+#elif BX_PLATFORM_FREEBSD |
22 |
+ pthread_set_name_np(m_handle, _name); |
23 |
+ pthread_set_name_np(m_handle, _name); |
23 |
#elif BX_PLATFORM_WINDOWS && BX_COMPILER_MSVC |
24 |
#elif BX_PLATFORM_WINDOWS && BX_COMPILER_MSVC |
24 |
# pragma pack(push, 8) |
25 |
# pragma pack(push, 8) |
25 |
struct ThreadName |
26 |
struct ThreadName |