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

Side by Side Diff: mojo/system/waiter_list.h

Issue 106173003: Split mojo_system dylib into public and private (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/system/waiter.h ('k') | no next file » | 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_LIST_H_ 5 #ifndef MOJO_SYSTEM_WAITER_LIST_H_
6 #define MOJO_SYSTEM_WAITER_LIST_H_ 6 #define MOJO_SYSTEM_WAITER_LIST_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "mojo/public/system/core.h" 11 #include "mojo/public/system/core.h"
12 #include "mojo/public/system/system_export.h" 12 #include "mojo/system/system_impl_export.h"
13 13
14 namespace mojo { 14 namespace mojo {
15 namespace system { 15 namespace system {
16 16
17 class Waiter; 17 class Waiter;
18 18
19 // |WaiterList| tracks all the |Waiter|s that are waiting on a given 19 // |WaiterList| tracks all the |Waiter|s that are waiting on a given
20 // handle/|Dispatcher|. There should be a |WaiterList| for each handle that can 20 // handle/|Dispatcher|. There should be a |WaiterList| for each handle that can
21 // be waited on (in any way). In the simple case, the |WaiterList| is owned by 21 // be waited on (in any way). In the simple case, the |WaiterList| is owned by
22 // the |Dispatcher|, whereas in more complex cases it is owned by the secondary 22 // the |Dispatcher|, whereas in more complex cases it is owned by the secondary
23 // object (see simple_dispatcher.* and the explanatory comment in core_impl.cc). 23 // object (see simple_dispatcher.* and the explanatory comment in core_impl.cc).
24 // This class is thread-unsafe (all concurrent access must be protected by some 24 // This class is thread-unsafe (all concurrent access must be protected by some
25 // lock). 25 // lock).
26 class MOJO_SYSTEM_EXPORT WaiterList { 26 class MOJO_SYSTEM_IMPL_EXPORT WaiterList {
27 public: 27 public:
28 WaiterList(); 28 WaiterList();
29 ~WaiterList(); 29 ~WaiterList();
30 30
31 void AwakeWaitersForStateChange(MojoWaitFlags satisfied_flags, 31 void AwakeWaitersForStateChange(MojoWaitFlags satisfied_flags,
32 MojoWaitFlags satisfiable_flags); 32 MojoWaitFlags satisfiable_flags);
33 void CancelAllWaiters(); 33 void CancelAllWaiters();
34 void AddWaiter(Waiter* waiter, MojoWaitFlags flags, MojoResult wake_result); 34 void AddWaiter(Waiter* waiter, MojoWaitFlags flags, MojoResult wake_result);
35 void RemoveWaiter(Waiter* waiter); 35 void RemoveWaiter(Waiter* waiter);
36 36
(...skipping 10 matching lines...) Expand all
47 47
48 WaiterInfoList waiters_; 48 WaiterInfoList waiters_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(WaiterList); 50 DISALLOW_COPY_AND_ASSIGN(WaiterList);
51 }; 51 };
52 52
53 } // namespace system 53 } // namespace system
54 } // namespace mojo 54 } // namespace mojo
55 55
56 #endif // MOJO_SYSTEM_WAITER_LIST_H_ 56 #endif // MOJO_SYSTEM_WAITER_LIST_H_
OLDNEW
« no previous file with comments | « mojo/system/waiter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698