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

Unified Diff: base/platform_thread.h

Issue 183016: Port some of the base module to FreeBSD. Extracted from... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Minor edits Created 11 years, 4 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 | « base/native_library.h ('k') | base/port.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/platform_thread.h
===================================================================
--- base/platform_thread.h (revision 24904)
+++ base/platform_thread.h (working copy)
@@ -22,12 +22,12 @@
#elif defined(OS_POSIX)
#include <pthread.h>
typedef pthread_t PlatformThreadHandle;
-#if defined(OS_LINUX)
+#if defined(OS_MACOSX)
+#include <mach/mach.h>
+typedef mach_port_t PlatformThreadId;
+#else // OS_POSIX && !OS_MACOSX
#include <unistd.h>
typedef pid_t PlatformThreadId;
-#elif defined(OS_MACOSX)
-#include <mach/mach.h>
-typedef mach_port_t PlatformThreadId;
#endif
#endif
« no previous file with comments | « base/native_library.h ('k') | base/port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698