Struct ndk::looper::ThreadLooper [−][src]
pub struct ThreadLooper { /* fields omitted */ }
Expand description
A thread-local ALooper
. This contains a native ALooper *
and promises that there is a
looper associated with the current thread.
Implementations
Returns the looper associated with the current thread, if any.
Polls the looper, blocking on processing an event.
Polls the looper, blocking on processing an event, but with a timeout. Give a timeout of 0 to make this non-blocking.
It panics if the timeout is larger than expressible as an i32
of milliseconds (roughly 25
days).
Repeatedly polls the looper, blocking on processing an event.
This function will never return Poll::Callback
.
Repeatedly polls the looper, blocking on processing an event, but with a timeout. Give a timeout of 0 to make this non-blocking.
This function will never return Poll::Callback
.
It panics if the timeout is larger than expressible as an i32
of milliseconds (roughly 25
days).
Returns a reference to the ForeignLooper
that is associated with the current thread.