projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Drop support for deprecated associative containers
[folly.git]
/
folly
/
ThreadId.h
diff --git
a/folly/ThreadId.h
b/folly/ThreadId.h
index 2a30ff784cc889195eeeba710d0e00424da564ef..6593b3f101efec722487deef6fb448be3f523c9b 100644
(file)
--- a/
folly/ThreadId.h
+++ b/
folly/ThreadId.h
@@
-24,7
+24,9
@@
namespace folly {
inline uint64_t getCurrentThreadID() {
-#ifdef _WIN32
+#if __APPLE__
+ return uint64_t(pthread_mach_thread_np(pthread_self()));
+#elif _WIN32
return uint64_t(GetCurrentThreadId());
#else
return uint64_t(pthread_self());