File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ namespace brynet { namespace net { namespace current_thread {
2323#ifdef BRYNET_PLATFORM_WINDOWS
2424using THREAD_ID_TYPE = DWORD;
2525#elif defined BRYNET_PLATFORM_LINUX || defined BRYNET_PLATFORM_DARWIN || defined BRYNET_PLATFORM_FREEBSD
26- # if defined BRYNET_PLATFORM_FREEBSD
26+ #if defined BRYNET_PLATFORM_FREEBSD
2727using THREAD_ID_TYPE = pthread_t ;
28- # else
28+ #else
2929using THREAD_ID_TYPE = int ;
30- # endif
30+ #endif
3131#endif
3232
3333static THREAD_ID_TYPE& tid ()
@@ -45,16 +45,16 @@ static THREAD_ID_TYPE& tid()
4545#elif defined BRYNET_PLATFORM_LINUX
4646 cachedTid = static_cast <pid_t >(::syscall (SYS_gettid));
4747#elif defined BRYNET_PLATFORM_DARWIN || defined BRYNET_PLATFORM_FREEBSD
48- # if defined BRYNET_PLATFORM_FREEBSD
48+ #if defined BRYNET_PLATFORM_FREEBSD
4949 cachedTid = pthread_self ();
50- # else
50+ #else
5151 // warning: 'syscall' is deprecated:
5252 // first deprecated in macOS 10.12 - syscall(2) is unsupported;
5353 // please switch to a supported interface.
5454 uint64_t tid64;
5555 pthread_threadid_np (NULL , &tid64);
5656 cachedTid = (pid_t ) tid64;
57- # endif
57+ #endif
5858#endif
5959 }
6060
You can’t perform that action at this time.
0 commit comments