Drop support for deprecated associative containers
[folly.git] / folly / ThreadId.h
index 2a30ff784cc889195eeeba710d0e00424da564ef..6593b3f101efec722487deef6fb448be3f523c9b 100644 (file)
@@ -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());