Module looper

Source
Expand description

Bindings for ALooper

In Android, ALoopers are inherently thread-local. Due to this, there are two different ALooper interfaces exposed in this module:

  • ThreadLooper, which has methods for the operations performable with a looper in one’s own thread; and
  • ForeignLooper, which has methods for the operations performable with any thread’s looper.

Structs§

ForeignLooper
An ALooper, not necessarily allociated with the current thread.
LooperError
ThreadLooper
A thread-local ALooper. This contains a native ALooper * and promises that there is a looper associated with the current thread.

Enums§

Poll
The poll result from a ThreadLooper.