summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2024-05-08 23:04:55 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-05-08 23:04:55 +0000
commitec4fb37b08f5d653dd0fdcaa6dbbbc86e3095813 (patch)
treee4ac261957a0f9039a4a497e552cae54fdd1238c
parentabb750fe27022b09cd5c40ce39a110b02d22bdd8 (diff)
parent26620a62ebf3dd901f5d33e65c57c98414a11df9 (diff)
downloadnative-ec4fb37b08f5d653dd0fdcaa6dbbbc86e3095813.tar.gz
Merge "Define the error conditions for ALooper_pollOnce." into main
-rw-r--r--include/android/looper.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/android/looper.h b/include/android/looper.h
index dba2e89942..d80a3660a6 100644
--- a/include/android/looper.h
+++ b/include/android/looper.h
@@ -193,8 +193,9 @@ typedef int (*ALooper_callbackFunc)(int fd, int events, void* data);
* Returns ALOOPER_POLL_TIMEOUT if there was no data before the given timeout
* expired. The poll may also have been explicitly woken by ALooper_wake.
*
- * Returns ALOOPER_POLL_ERROR if an error occurred. The poll may also have been
- * explicitly woken by ALooper_wake.
+ * Returns ALOOPER_POLL_ERROR if the calling thread has no associated Looper or
+ * for unrecoverable internal errors. The poll may also have been explicitly
+ * woken by ALooper_wake.
*
* Returns a value >= 0 containing an identifier (the same identifier `ident`
* passed to ALooper_addFd()) if its file descriptor has data and it has no