[][src]Function android_looper_sys::ALooper_prepare

pub unsafe extern "C" 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.