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

Unified Diff: third_party/mojo/src/mojo/edk/system/awakable_list.h

Issue 1676913002: [mojo] Delete third_party/mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: let's try that again Created 4 years, 10 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
Index: third_party/mojo/src/mojo/edk/system/awakable_list.h
diff --git a/third_party/mojo/src/mojo/edk/system/awakable_list.h b/third_party/mojo/src/mojo/edk/system/awakable_list.h
deleted file mode 100644
index 5eedc56c4d8e8d56657d30f5be45eab3d3b66973..0000000000000000000000000000000000000000
--- a/third_party/mojo/src/mojo/edk/system/awakable_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 THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_AWAKABLE_LIST_H_
-#define THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_AWAKABLE_LIST_H_
-
-#include <stdint.h>
-
-#include <vector>
-
-#include "mojo/public/c/system/types.h"
-#include "mojo/public/cpp/system/macros.h"
-#include "third_party/mojo/src/mojo/edk/system/system_impl_export.h"
-
-namespace mojo {
-namespace system {
-
-class Awakable;
-struct HandleSignalsState;
-
-// |AwakableList| tracks all the |Waiter|s that are waiting on a given
-// handle/|Dispatcher|. There should be a |AwakableList| for each handle that
-// can be waited on (in any way). In the simple case, the |AwakableList| 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 AwakableList {
- public:
- AwakableList();
- ~AwakableList();
-
- void AwakeForStateChange(const HandleSignalsState& state);
- void CancelAll();
- void Add(Awakable* awakable, MojoHandleSignals signals, uintptr_t context);
- void Remove(Awakable* awakable);
-
- private:
- struct AwakeInfo {
- AwakeInfo(Awakable* awakable, MojoHandleSignals signals, uintptr_t context)
- : awakable(awakable), signals(signals), context(context) {}
-
- Awakable* awakable;
- MojoHandleSignals signals;
- uintptr_t context;
- };
- using AwakeInfoList = std::vector<AwakeInfo>;
-
- AwakeInfoList awakables_;
-
- MOJO_DISALLOW_COPY_AND_ASSIGN(AwakableList);
-};
-
-} // namespace system
-} // namespace mojo
-
-#endif // THIRD_PARTY_MOJO_SRC_MOJO_EDK_SYSTEM_AWAKABLE_LIST_H_
« no previous file with comments | « third_party/mojo/src/mojo/edk/system/awakable.h ('k') | third_party/mojo/src/mojo/edk/system/awakable_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698