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

Unified Diff: base/synchronization/lock_impl.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/synchronization/lock_impl.h
diff --git a/base/synchronization/lock_impl.h b/base/synchronization/lock_impl.h
index 603585a05041764e20c41c17f57504130ba82110..539523de4c3a80e20553ebed96e6861682679797 100644
--- a/base/synchronization/lock_impl.h
+++ b/base/synchronization/lock_impl.h
@@ -13,6 +13,8 @@
#include <windows.h>
#elif defined(OS_POSIX)
#include <pthread.h>
+#elif defined(OS_FUCHSIA)
+#include <threads.h>
#endif
namespace base {
@@ -26,7 +28,9 @@ class BASE_EXPORT LockImpl {
#if defined(OS_WIN)
using NativeHandle = SRWLOCK;
#elif defined(OS_POSIX)
- using NativeHandle = pthread_mutex_t;
+ using NativeHandle = pthread_mutex_t;
+#elif defined(OS_FUCHSIA)
+ using NativeHandle = mtx_t;
#endif
LockImpl();

Powered by Google App Engine
This is Rietveld 408576698