mhgu-forge-sys 1.4.0

Raw FFI bindings to the forge plugin API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[repr(C)]
#[derive(Default)]
pub struct BarrierType {
    _reserved: [u8; 20],
}

unsafe extern "C" {
    #[link_name = "__nnmusl_pthread_barrier_init"]
    pub fn nnosInitializeBarrier(barrier: *mut BarrierType, num_threads: i32) -> u32;

    #[link_name = "__nnmusl_pthread_barrier_wait"]
    pub fn nnosAwaitBarrier(barrier: *mut BarrierType);

    #[link_name = "__nnmusl_pthread_barrier_destroy"]
    pub fn nnosFinalizeBarrier(barrier: *mut BarrierType);
}