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

Unified Diff: mojo/edk/system/waitable_event.h

Issue 1426343002: EDK: Move mutex.*, cond_var.*, and thread_annotations.h to //mojo/edk/util. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: oops 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 | « mojo/edk/system/thread_annotations_unittest.cc ('k') | mojo/edk/system/waitable_event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/waitable_event.h
diff --git a/mojo/edk/system/waitable_event.h b/mojo/edk/system/waitable_event.h
index a9362b162c075d622292ae9a1bc0e508b965ccbe..38c75e06564db3c1c1b44d236188be3b95c0172e 100644
--- a/mojo/edk/system/waitable_event.h
+++ b/mojo/edk/system/waitable_event.h
@@ -10,9 +10,9 @@
#ifndef MOJO_EDK_SYSTEM_WAITABLE_EVENT_H_
#define MOJO_EDK_SYSTEM_WAITABLE_EVENT_H_
-#include "mojo/edk/system/cond_var.h"
-#include "mojo/edk/system/mutex.h"
-#include "mojo/edk/system/thread_annotations.h"
+#include "mojo/edk/util/cond_var.h"
+#include "mojo/edk/util/mutex.h"
+#include "mojo/edk/util/thread_annotations.h"
#include "mojo/public/cpp/system/macros.h"
namespace mojo {
@@ -62,8 +62,8 @@ class AutoResetWaitableEvent {
bool IsSignaledForTest();
private:
- CondVar cv_;
- Mutex mutex_;
+ util::CondVar cv_;
+ util::Mutex mutex_;
// True if this event is in the signaled state.
bool signaled_ MOJO_GUARDED_BY(mutex_) = false;
@@ -104,8 +104,8 @@ class ManualResetWaitableEvent {
bool IsSignaledForTest();
private:
- CondVar cv_;
- Mutex mutex_;
+ util::CondVar cv_;
+ util::Mutex mutex_;
// True if this event is in the signaled state.
bool signaled_ MOJO_GUARDED_BY(mutex_) = false;
« no previous file with comments | « mojo/edk/system/thread_annotations_unittest.cc ('k') | mojo/edk/system/waitable_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698