1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#![allow(missing_docs)] use core::ffi::c_void; extern "C" { pub fn acf_dispatch_group_create() -> *mut c_void; pub fn acf_dispatch_group_enter(group: *mut c_void); pub fn acf_dispatch_group_leave(group: *mut c_void); pub fn acf_dispatch_group_wait(group: *mut c_void, timeout_ms: i64) -> bool; pub fn acf_dispatch_semaphore_create(value: i64) -> *mut c_void; pub fn acf_dispatch_semaphore_signal(semaphore: *mut c_void) -> i64; pub fn acf_dispatch_semaphore_wait(semaphore: *mut c_void, timeout_ms: i64) -> bool; pub fn acf_dispatch_source_timer_create(interval_ms: u64, leeway_ms: u64) -> *mut c_void; pub fn acf_dispatch_source_timer_resume(source: *mut c_void); pub fn acf_dispatch_source_timer_cancel(source: *mut c_void); pub fn acf_dispatch_source_timer_fire_count(source: *mut c_void) -> u64; }