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

Unified Diff: mojo/edk/system/test/test_io_thread.h

Issue 1408003013: Reland "EDK: Move //mojo/edk/system/waitable_event* to edk/util." (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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/slave_connection_manager.h ('k') | mojo/edk/system/test/test_io_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/test/test_io_thread.h
diff --git a/mojo/edk/system/test/test_io_thread.h b/mojo/edk/system/test/test_io_thread.h
index 8b0d6e39e952aff5cb2f247a89519d970bbc96ef..571c7909c16890ecb9146bc2d8355db57a6d3fab 100644
--- a/mojo/edk/system/test/test_io_thread.h
+++ b/mojo/edk/system/test/test_io_thread.h
@@ -29,10 +29,10 @@ class TestIOThread {
void Start();
void Stop();
- // Post |task| to the IO thread.
+ // Posts |task| to the I/O thread.
void PostTask(const base::Closure& task);
- // Posts |task| to the IO-thread with an WaitableEvent associated blocks on
- // it until the posted |task| is executed, then returns.
+ // Posts |task| to the I/O thread, blocking the calling thread until the
+ // posted task is executed (note the deadlock risk!).
void PostTaskAndWait(const base::Closure& task);
base::MessageLoopForIO* message_loop() {
« no previous file with comments | « mojo/edk/system/slave_connection_manager.h ('k') | mojo/edk/system/test/test_io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698