1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#![allow(missing_docs)]
use core::ffi::c_void;
extern "C" {
/// Swift bridge function `acf_dispatch_async_f` for the corresponding Apple API.
pub fn acf_dispatch_async_f(
queue: *mut c_void,
context: *mut c_void,
work: extern "C" fn(*mut c_void),
);
/// Swift bridge function `acf_dispatch_async_and_wait_f` for the corresponding Apple API.
pub fn acf_dispatch_async_and_wait_f(
queue: *mut c_void,
context: *mut c_void,
work: extern "C" fn(*mut c_void),
);
pub fn acf_dispatch_after_f(
delay_ns: u64,
queue: *mut c_void,
context: *mut c_void,
work: extern "C" fn(*mut c_void),
);
/// Swift bridge function `acf_dispatch_apply_f` for the corresponding Apple API.
pub fn acf_dispatch_apply_f(
iterations: usize,
queue: *mut c_void,
context: *mut c_void,
work: extern "C" fn(usize, *mut c_void),
);
/// Swift bridge function `acf_dispatch_group_holder_create` for the corresponding Apple API.
pub fn acf_dispatch_group_holder_create() -> *mut c_void;
/// Swift bridge function `acf_dispatch_group_holder_enter` for the corresponding Apple API.
pub fn acf_dispatch_group_holder_enter(group: *mut c_void);
/// Swift bridge function `acf_dispatch_group_holder_leave` for the corresponding Apple API.
pub fn acf_dispatch_group_holder_leave(group: *mut c_void);
/// Swift bridge function `acf_dispatch_group_holder_wait` for the corresponding Apple API.
pub fn acf_dispatch_group_holder_wait(group: *mut c_void, timeout_ms: i64) -> bool;
/// Swift bridge function `acf_dispatch_semaphore_holder_create` for the corresponding Apple API.
pub fn acf_dispatch_semaphore_holder_create(value: i64) -> *mut c_void;
/// Swift bridge function `acf_dispatch_semaphore_holder_signal` for the corresponding Apple API.
pub fn acf_dispatch_semaphore_holder_signal(semaphore: *mut c_void) -> i64;
/// Swift bridge function `acf_dispatch_semaphore_holder_wait` for the corresponding Apple API.
pub fn acf_dispatch_semaphore_holder_wait(semaphore: *mut c_void, timeout_ms: i64) -> bool;
/// Swift bridge function `acf_dispatch_source_timer_create` for the corresponding Apple API.
pub fn acf_dispatch_source_timer_create(interval_ms: u64, leeway_ms: u64) -> *mut c_void;
pub fn acf_dispatch_source_timer_create_ns(interval_ns: u64, leeway_ns: u64) -> *mut c_void;
/// Swift bridge function `acf_dispatch_source_timer_resume` for the corresponding Apple API.
pub fn acf_dispatch_source_timer_resume(source: *mut c_void);
/// Swift bridge function `acf_dispatch_source_timer_cancel` for the corresponding Apple API.
pub fn acf_dispatch_source_timer_cancel(source: *mut c_void);
/// Swift bridge function `acf_dispatch_source_timer_fire_count` for the corresponding Apple API.
pub fn acf_dispatch_source_timer_fire_count(source: *mut c_void) -> u64;
}