summaryrefslogtreecommitdiff
path: root/core/java/android/os/Handler.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2014-11-11 20:21:21 -0800
committerJeff Brown <jeffbrown@google.com>2014-11-11 20:35:58 -0800
commit9840c07667bb0363c93fb8459e6c08f7e30d5df1 (patch)
tree697c72a8af464edf67932ec1577b84244fdf6300 /core/java/android/os/Handler.java
parent3f558e7285d8632b81cde4a9f1d0829e02be5fa0 (diff)
Make Message.setAsynchronous() public.
There are many cases in real world applications where it is desirable to continue processing messages on the Looper even when most other messages have been suspended by a synchronization barrier pending completion of the next drawing frame on vsync. Internally the framework is able to mark certain messages as being independent of these higher level synchronization invariants by flagging them as asynchronous. This change exposes the existing function and improves on the documentation so that it is clearer what is meant by asynchronous. Bug: 18283959 Change-Id: I775e4c95938123a364b21a9f2c39019bf37e1afd
Diffstat (limited to 'core/java/android/os/Handler.java')
-rw-r--r--core/java/android/os/Handler.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/os/Handler.java b/core/java/android/os/Handler.java
index 52db0609854e..878b7a0e8e10 100644
--- a/core/java/android/os/Handler.java
+++ b/core/java/android/os/Handler.java
@@ -156,7 +156,7 @@ public class Handler {
* one that is strictly asynchronous.
*
* Asynchronous messages represent interrupts or events that do not require global ordering
- * with represent to synchronous messages. Asynchronous messages are not subject to
+ * with respect to synchronous messages. Asynchronous messages are not subject to
* the synchronization barriers introduced by {@link MessageQueue#enqueueSyncBarrier(long)}.
*
* @param async If true, the handler calls {@link Message#setAsynchronous(boolean)} for
@@ -176,7 +176,7 @@ public class Handler {
* one that is strictly asynchronous.
*
* Asynchronous messages represent interrupts or events that do not require global ordering
- * with represent to synchronous messages. Asynchronous messages are not subject to
+ * with respect to synchronous messages. Asynchronous messages are not subject to
* the synchronization barriers introduced by {@link MessageQueue#enqueueSyncBarrier(long)}.
*
* @param callback The callback interface in which to handle messages, or null.
@@ -214,7 +214,7 @@ public class Handler {
* one that is strictly asynchronous.
*
* Asynchronous messages represent interrupts or events that do not require global ordering
- * with represent to synchronous messages. Asynchronous messages are not subject to
+ * with respect to synchronous messages. Asynchronous messages are not subject to
* the synchronization barriers introduced by {@link MessageQueue#enqueueSyncBarrier(long)}.
*
* @param looper The looper, must not be null.