summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2017-08-01 02:21:21 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2017-08-01 02:21:21 +0000
commit0b8f28163721c08b170e64fedbd3cb718f079a84 (patch)
tree5ede8910b8d3db9a4445526a0facf07c69374c95
parent46b2968ff925cdad968392da7dec3176868895c7 (diff)
parent6f12f2233e52a18c61aa30aceb204ffa9f9d2011 (diff)
Merge "Add documentation on oneway transaction ordering." into oc-mr1-dev
-rw-r--r--core/java/android/os/IBinder.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/os/IBinder.java b/core/java/android/os/IBinder.java
index f762a052cb41..d5216e73ba66 100644
--- a/core/java/android/os/IBinder.java
+++ b/core/java/android/os/IBinder.java
@@ -153,6 +153,14 @@ public interface IBinder {
* caller returns immediately, without waiting for a result from the
* callee. Applies only if the caller and callee are in different
* processes.
+ *
+ * <p>The system provides special ordering semantics for multiple oneway calls
+ * being made to the same IBinder object: these calls will be dispatched in the
+ * other process one at a time, with the same order as the original calls. These
+ * are still dispatched by the IPC thread pool, so may execute on different threads,
+ * but the next one will not be dispatched until the previous one completes. This
+ * ordering is not guaranteed for calls on different IBinder objects or when mixing
+ * oneway and non-oneway calls on the same IBinder object.</p>
*/
int FLAG_ONEWAY = 0x00000001;