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

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

Issue 623883002: Revert "Move mojo edk into mojo/edk" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/edk/system/waiter.cc ('k') | mojo/edk/system/waiter_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/waiter_list.h
diff --git a/mojo/edk/system/waiter_list.h b/mojo/edk/system/waiter_list.h
deleted file mode 100644
index 6bbc799b4891c484a55a727fc9046d236b65ee6f..0000000000000000000000000000000000000000
--- a/mojo/edk/system/waiter_list.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MOJO_EDK_SYSTEM_WAITER_LIST_H_
-#define MOJO_EDK_SYSTEM_WAITER_LIST_H_
-
-#include <stdint.h>
-
-#include <list>
-
-#include "base/macros.h"
-#include "mojo/edk/system/system_impl_export.h"
-#include "mojo/public/c/system/types.h"
-
-namespace mojo {
-namespace system {
-
-class Waiter;
-struct HandleSignalsState;
-
-// |WaiterList| tracks all the |Waiter|s that are waiting on a given
-// handle/|Dispatcher|. There should be a |WaiterList| for each handle that can
-// be waited on (in any way). In the simple case, the |WaiterList| is owned by
-// the |Dispatcher|, whereas in more complex cases it is owned by the secondary
-// object (see simple_dispatcher.* and the explanatory comment in core.cc). This
-// class is thread-unsafe (all concurrent access must be protected by some
-// lock).
-class MOJO_SYSTEM_IMPL_EXPORT WaiterList {
- public:
- WaiterList();
- ~WaiterList();
-
- void AwakeWaitersForStateChange(const HandleSignalsState& state);
- void CancelAllWaiters();
- void AddWaiter(Waiter* waiter, MojoHandleSignals signals, uint32_t context);
- void RemoveWaiter(Waiter* waiter);
-
- private:
- struct WaiterInfo {
- WaiterInfo(Waiter* waiter, MojoHandleSignals signals, uint32_t context)
- : waiter(waiter), signals(signals), context(context) {}
-
- Waiter* waiter;
- MojoHandleSignals signals;
- uint32_t context;
- };
- typedef std::list<WaiterInfo> WaiterInfoList;
-
- WaiterInfoList waiters_;
-
- DISALLOW_COPY_AND_ASSIGN(WaiterList);
-};
-
-} // namespace system
-} // namespace mojo
-
-#endif // MOJO_EDK_SYSTEM_WAITER_LIST_H_
« no previous file with comments | « mojo/edk/system/waiter.cc ('k') | mojo/edk/system/waiter_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698