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

Unified Diff: mojo/spy/spy.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/public/platform/native/system_thunks.cc ('k') | mojo/system/core.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/spy/spy.cc
diff --git a/mojo/spy/spy.cc b/mojo/spy/spy.cc
index 349f5d5207fa0d58d52611805bdebb38e38d409f..acce078e1ae4877a127c0dbc6849247b705d41cc 100644
--- a/mojo/spy/spy.cc
+++ b/mojo/spy/spy.cc
@@ -49,9 +49,9 @@ class MessageProcessor :
std::vector<mojo::MessagePipeHandle> pipes;
pipes.push_back(client.get());
pipes.push_back(interceptor.get());
- std::vector<MojoWaitFlags> wait_flags;
- wait_flags.push_back(MOJO_WAIT_FLAG_READABLE);
- wait_flags.push_back(MOJO_WAIT_FLAG_READABLE);
+ std::vector<MojoHandleSignals> handle_signals;
+ handle_signals.push_back(MOJO_WAIT_FLAG_READABLE);
+ handle_signals.push_back(MOJO_WAIT_FLAG_READABLE);
scoped_ptr<char[]> mbuf(new char[kMessageBufSize]);
scoped_ptr<MojoHandle[]> hbuf(new MojoHandle[kHandleBufSize]);
@@ -64,7 +64,7 @@ class MessageProcessor :
// 4- Write the message to opposite port.
for (;;) {
- int r = WaitMany(pipes, wait_flags, MOJO_DEADLINE_INDEFINITE);
+ int r = WaitMany(pipes, handle_signals, MOJO_DEADLINE_INDEFINITE);
if ((r < 0) || (r > 1)) {
last_result_ = r;
break;
« no previous file with comments | « mojo/public/platform/native/system_thunks.cc ('k') | mojo/system/core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698