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

Side by Side Diff: mojo/edk/system/waiter.h

Issue 621153003: Move mojo edk into mojo/edk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix checkdeps Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « mojo/edk/system/transport_data.cc ('k') | mojo/edk/system/waiter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_SYSTEM_WAITER_H_ 5 #ifndef MOJO_EDK_SYSTEM_WAITER_H_
6 #define MOJO_SYSTEM_WAITER_H_ 6 #define MOJO_EDK_SYSTEM_WAITER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/synchronization/condition_variable.h" 11 #include "base/synchronization/condition_variable.h"
12 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
13 #include "mojo/edk/system/system_impl_export.h"
13 #include "mojo/public/c/system/types.h" 14 #include "mojo/public/c/system/types.h"
14 #include "mojo/system/system_impl_export.h"
15 15
16 namespace mojo { 16 namespace mojo {
17 namespace system { 17 namespace system {
18 18
19 // IMPORTANT (all-caps gets your attention, right?): |Waiter| methods are called 19 // IMPORTANT (all-caps gets your attention, right?): |Waiter| methods are called
20 // under other locks, in particular, |Dispatcher::lock_|s, so |Waiter| methods 20 // under other locks, in particular, |Dispatcher::lock_|s, so |Waiter| methods
21 // must never call out to other objects (in particular, |Dispatcher|s). This 21 // must never call out to other objects (in particular, |Dispatcher|s). This
22 // class is thread-safe. 22 // class is thread-safe.
23 class MOJO_SYSTEM_IMPL_EXPORT Waiter { 23 class MOJO_SYSTEM_IMPL_EXPORT Waiter {
24 public: 24 public:
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // |MojoWaitMany()|). But in tests, it's convenient to use this for other 71 // |MojoWaitMany()|). But in tests, it's convenient to use this for other
72 // purposes (e.g., to distinguish between different wake-up reasons). 72 // purposes (e.g., to distinguish between different wake-up reasons).
73 uint32_t awake_context_; 73 uint32_t awake_context_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(Waiter); 75 DISALLOW_COPY_AND_ASSIGN(Waiter);
76 }; 76 };
77 77
78 } // namespace system 78 } // namespace system
79 } // namespace mojo 79 } // namespace mojo
80 80
81 #endif // MOJO_SYSTEM_WAITER_H_ 81 #endif // MOJO_EDK_SYSTEM_WAITER_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/transport_data.cc ('k') | mojo/edk/system/waiter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698