Sha256: 7ce37b9d2ac02d98e2417d94ef3f6a4768e158fead8ac18907ba4627c0e9f458

Contents?: true

Size: 740 Bytes

Versions: 13

Compression:

Stored size: 740 Bytes

Contents

//! This module corresponds to `mach/semaphore.h`

use clock_types::mach_timespec_t;
use kern_return::kern_return_t;
use mach_types::{semaphore_t, task_t};
use sync_policy::sync_policy_t;

extern "C" {
    pub fn semaphore_create(
        task: task_t,
        semaphore: *mut semaphore_t,
        policy: sync_policy_t,
        value: libc::c_int,
    ) -> kern_return_t;
    pub fn semaphore_signal(semaphore: *mut semaphore_t) -> kern_return_t;
    pub fn semaphore_wait(semaphore: *mut semaphore_t) -> kern_return_t;
    pub fn semaphore_timedwait(
        semaphore: *mut semaphore_t,
        timeout: mach_timespec_t,
    ) -> kern_return_t;
    pub fn semaphore_destroy(task: task_t, semaphore: *mut semaphore_t) -> kern_return_t;
}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/semaphore.rs
wasmtime-28.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/semaphore.rs
wasmtime-27.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/semaphore.rs
wasmtime-26.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/semaphore.rs
wasmtime-25.0.2 ./ext/cargo-vendor/mach2-0.4.2/src/semaphore.rs
wasmtime-25.0.1 ./ext/cargo-vendor/mach2-0.4.2/src/semaphore.rs
wasmtime-25.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/semaphore.rs
wasmtime-24.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/semaphore.rs
wasmtime-23.0.2 ./ext/cargo-vendor/mach2-0.4.2/src/semaphore.rs
wasmtime-22.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/semaphore.rs
wasmtime-21.0.1 ./ext/cargo-vendor/mach2-0.4.2/src/semaphore.rs
wasmtime-20.0.2 ./ext/cargo-vendor/mach2-0.4.2/src/semaphore.rs
wasmtime-20.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/semaphore.rs