| 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) {}
|
|
|