Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1948)

Unified Diff: base/threading/platform_thread.h

Issue 9281011: [Mac] In PlatformThread::CurrentId(), use pthread_self() instead of mach_thread_self(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/threading/platform_thread_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/platform_thread.h
diff --git a/base/threading/platform_thread.h b/base/threading/platform_thread.h
index f958ef6c7db61f09ec7a55bb513b275592b0b241..4d4a06c01368a9c5b1c8c0cadd5b154ebfffc533 100644
--- a/base/threading/platform_thread.h
+++ b/base/threading/platform_thread.h
@@ -19,12 +19,8 @@
#include <windows.h>
#elif defined(OS_POSIX)
#include <pthread.h>
-#if defined(OS_MACOSX)
-#include <mach/mach.h>
-#else // OS_POSIX && !OS_MACOSX
#include <unistd.h>
#endif
-#endif
namespace base {
@@ -39,12 +35,8 @@ const PlatformThreadHandle kNullThreadHandle = NULL;
#elif defined(OS_POSIX)
typedef pthread_t PlatformThreadHandle;
const PlatformThreadHandle kNullThreadHandle = 0;
-#if defined(OS_MACOSX)
-typedef mach_port_t PlatformThreadId;
-#else // OS_POSIX && !OS_MACOSX
typedef pid_t PlatformThreadId;
#endif
-#endif
const PlatformThreadId kInvalidThreadId = 0;
« no previous file with comments | « no previous file | base/threading/platform_thread_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698