ALooper_prepare

Function ALooper_prepare 

Source
pub unsafe extern "C" fn ALooper_prepare(opts: c_int) -> *mut ALooper
Expand description

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.