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

Unified Diff: mojo/edk/system/waiter_test_utils.cc

Issue 2084593005: Rationalize AddAwakable...() and RemoveAwakable...() methods. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 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/edk/system/wait_set_dispatcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/waiter_test_utils.cc
diff --git a/mojo/edk/system/waiter_test_utils.cc b/mojo/edk/system/waiter_test_utils.cc
index b2423ab40de58959012a8c5697a359e1a0a5f746..c261be8cfdef5bc19582a4c81c52fd27b4965a97 100644
--- a/mojo/edk/system/waiter_test_utils.cc
+++ b/mojo/edk/system/waiter_test_utils.cc
@@ -58,14 +58,14 @@ WaiterThread::~WaiterThread() {
void WaiterThread::Run() {
waiter_.Init();
- *result_out_ = dispatcher_->AddAwakable(&waiter_, handle_signals_, context_,
- signals_state_out_);
+ *result_out_ = dispatcher_->AddAwakable(&waiter_, context_, false,
+ handle_signals_, signals_state_out_);
if (*result_out_ != MOJO_RESULT_OK)
return;
*did_wait_out_ = true;
*result_out_ = waiter_.Wait(deadline_, context_out_, nullptr);
- dispatcher_->RemoveAwakable(&waiter_, signals_state_out_);
+ dispatcher_->RemoveAwakable(false, &waiter_, 0, signals_state_out_);
}
} // namespace test
« no previous file with comments | « mojo/edk/system/wait_set_dispatcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698