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

Unified Diff: mojo/android/system/core_impl.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 | « no previous file | mojo/bindings/js/core.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/android/system/core_impl.cc
diff --git a/mojo/android/system/core_impl.cc b/mojo/android/system/core_impl.cc
index 366573c18ac68fb93114cf331e17733eb39c079d..e7899f65ec6ce6f25f111859a4117b0147006de0 100644
--- a/mojo/android/system/core_impl.cc
+++ b/mojo/android/system/core_impl.cc
@@ -70,9 +70,9 @@ static jint WaitMany(JNIEnv* env,
const size_t nb_handles = buffer_size / record_size;
const MojoHandle* handle_start = static_cast<const MojoHandle*>(buffer_start);
- const MojoWaitFlags* flags_start =
- static_cast<const MojoWaitFlags*>(handle_start + nb_handles);
- return MojoWaitMany(handle_start, flags_start, nb_handles, deadline);
+ const MojoHandleSignals* signals_start =
+ static_cast<const MojoHandleSignals*>(handle_start + nb_handles);
+ return MojoWaitMany(handle_start, signals_start, nb_handles, deadline);
}
static jobject CreateMessagePipe(JNIEnv* env, jobject jcaller) {
@@ -129,9 +129,9 @@ static jint Close(JNIEnv* env, jobject jcaller, jint mojo_handle) {
static jint Wait(JNIEnv* env,
jobject jcaller,
jint mojo_handle,
- jint flags,
+ jint signals,
jlong deadline) {
- return MojoWait(mojo_handle, flags, deadline);
+ return MojoWait(mojo_handle, signals, deadline);
}
static jint WriteMessage(JNIEnv* env,
@@ -322,7 +322,7 @@ static int Unmap(JNIEnv* env, jobject jcaller, jobject buffer) {
static jobject AsyncWait(JNIEnv* env,
jobject jcaller,
jint mojo_handle,
- jint flags,
+ jint signals,
jlong deadline,
jobject callback) {
AsyncWaitCallbackData* callback_data =
@@ -330,7 +330,7 @@ static jobject AsyncWait(JNIEnv* env,
MojoAsyncWaitID cancel_id;
if (static_cast<MojoHandle>(mojo_handle) != MOJO_HANDLE_INVALID) {
cancel_id = mojo::GetDefaultAsyncWaiter()->AsyncWait(mojo_handle,
- flags,
+ signals,
deadline,
AsyncWaitCallback,
callback_data);
« no previous file with comments | « no previous file | mojo/bindings/js/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698