Function android_looper_sys::ALooper_prepare [] [src]

pub unsafe extern fn ALooper_prepare(opts: c_int) -> *mut ALooper

Prepares a looper associated with the calling thread, and returns it. If the thread already has a looper, it is returned. Otherwise, a new one is created, associated with the thread, and returned.

The opts may be ALOOPER_PREPARE_ALLOW_NON_CALLBACKS or 0.