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

Unified Diff: util/synchronization/semaphore.h

Issue 797173003: win: implement Semaphore (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: pcheck Created 6 years 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 | « no previous file | util/synchronization/semaphore.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/synchronization/semaphore.h
diff --git a/util/synchronization/semaphore.h b/util/synchronization/semaphore.h
index 4e36f8ccb83edfda6cee29a9b115801410a86c40..8cff205da8682476c32dc7994def7f5bb490d956 100644
--- a/util/synchronization/semaphore.h
+++ b/util/synchronization/semaphore.h
@@ -19,6 +19,8 @@
#if defined(OS_MACOSX)
#include <dispatch/dispatch.h>
+#elif defined(OS_WIN)
+#include <windows.h>
#else
#include <semaphore.h>
#endif
@@ -53,6 +55,8 @@ class Semaphore {
private:
#if defined(OS_MACOSX)
dispatch_semaphore_t semaphore_;
+#elif defined(OS_WIN)
+ HANDLE semaphore_;
#else
sem_t semaphore_;
#endif
« no previous file with comments | « no previous file | util/synchronization/semaphore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698