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

Unified Diff: mojo/system/waiter_list.cc

Issue 345463003: Mojo: MojoWaitFlags -> MojoHandleSignals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/system/waiter_list.h ('k') | mojo/system/waiter_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/waiter_list.cc
diff --git a/mojo/system/waiter_list.cc b/mojo/system/waiter_list.cc
index e28654333094791e6b8b8273dd8fb1af9bad4e72..3de452a92f6446dabbd3f0aa259dcd8bc74ff4ec 100644
--- a/mojo/system/waiter_list.cc
+++ b/mojo/system/waiter_list.cc
@@ -21,9 +21,9 @@ WaiterList::~WaiterList() {
void WaiterList::AwakeWaitersForStateChange(const WaitFlagsState& state) {
for (WaiterInfoList::iterator it = waiters_.begin(); it != waiters_.end();
++it) {
- if (state.satisfies(it->flags))
+ if (state.satisfies(it->signals))
it->waiter->Awake(MOJO_RESULT_OK, it->context);
- else if (!state.can_satisfy(it->flags))
+ else if (!state.can_satisfy(it->signals))
it->waiter->Awake(MOJO_RESULT_FAILED_PRECONDITION, it->context);
}
}
@@ -37,9 +37,9 @@ void WaiterList::CancelAllWaiters() {
}
void WaiterList::AddWaiter(Waiter* waiter,
- MojoWaitFlags flags,
+ MojoHandleSignals signals,
uint32_t context) {
- waiters_.push_back(WaiterInfo(waiter, flags, context));
+ waiters_.push_back(WaiterInfo(waiter, signals, context));
}
void WaiterList::RemoveWaiter(Waiter* waiter) {
« no previous file with comments | « mojo/system/waiter_list.h ('k') | mojo/system/waiter_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698