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

Unified Diff: base/threading/platform_thread.h

Issue 1446363003: Deleted OS_WIN and all Windows specific files from base. (Closed) Base URL: https://github.com/domokit/mojo.git@base_tests
Patch Set: Created 5 years, 1 month 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/test/test_timeouts.cc ('k') | base/threading/platform_thread_unittest.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 3468f45f91efd4929ea838f91559251a2d75a4ef..7914c92669ac1dcb8fdbd5cbd385cdbcf0ed315a 100644
--- a/base/threading/platform_thread.h
+++ b/base/threading/platform_thread.h
@@ -14,9 +14,7 @@
#include "base/time/time.h"
#include "build/build_config.h"
-#if defined(OS_WIN)
-#include <windows.h>
-#elif defined(OS_POSIX)
+#if defined(OS_POSIX)
#include <pthread.h>
#include <unistd.h>
#endif
@@ -24,9 +22,7 @@
namespace base {
// Used for logging. Always an integer value.
-#if defined(OS_WIN)
-typedef DWORD PlatformThreadId;
-#elif defined(OS_POSIX)
+#if defined(OS_POSIX)
typedef pid_t PlatformThreadId;
#endif
@@ -40,9 +36,7 @@ typedef pid_t PlatformThreadId;
// to distinguish a new thread from an old, dead thread.
class PlatformThreadRef {
public:
-#if defined(OS_WIN)
- typedef DWORD RefType;
-#elif defined(OS_POSIX)
+#if defined(OS_POSIX)
typedef pthread_t RefType;
#endif
PlatformThreadRef()
@@ -67,9 +61,7 @@ class PlatformThreadRef {
// Used to operate on threads.
class PlatformThreadHandle {
public:
-#if defined(OS_WIN)
- typedef void* Handle;
-#elif defined(OS_POSIX)
+#if defined(OS_POSIX)
typedef pthread_t Handle;
#endif
« no previous file with comments | « base/test/test_timeouts.cc ('k') | base/threading/platform_thread_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698