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

Unified Diff: base/threading/platform_thread.h

Issue 2692273008: Hacky slashy (Closed)
Patch Set: wip Created 3 years, 10 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
Index: base/threading/platform_thread.h
diff --git a/base/threading/platform_thread.h b/base/threading/platform_thread.h
index f886904d33b317bf21b4688de54498ed4020f12d..c4a3debbcc6c70e70be11767323dcdebe443c71a 100644
--- a/base/threading/platform_thread.h
+++ b/base/threading/platform_thread.h
@@ -23,6 +23,8 @@
#elif defined(OS_POSIX)
#include <pthread.h>
#include <unistd.h>
+#elif defined(OS_FUCHSIA)
+#include <threads.h>
#endif
namespace base {
@@ -34,6 +36,8 @@ typedef DWORD PlatformThreadId;
typedef mach_port_t PlatformThreadId;
#elif defined(OS_POSIX)
typedef pid_t PlatformThreadId;
+#elif defined(OS_FUCHSIA)
+typedef pid_t PlatformThreadId;
#endif
// Used for thread checking and debugging.
@@ -50,6 +54,8 @@ class PlatformThreadRef {
typedef DWORD RefType;
#elif defined(OS_POSIX)
typedef pthread_t RefType;
+#elif defined(OS_FUCHSIA)
+ typedef thrd_t RefType;
#endif
PlatformThreadRef()
: id_(0) {
@@ -77,6 +83,8 @@ class PlatformThreadHandle {
typedef void* Handle;
#elif defined(OS_POSIX)
typedef pthread_t Handle;
+#elif defined(OS_FUCHSIA)
+ typedef thrd_t Handle;
#endif
PlatformThreadHandle() : handle_(0) {}

Powered by Google App Engine
This is Rietveld 408576698