Sha256: df49bd287fd05fb74bc76254df7607fad0d6b90cb20da803e9f9a1dc2fcfe2fc

Contents?: true

Size: 447 Bytes

Versions: 36

Compression:

Stored size: 447 Bytes

Contents

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

use mach_types::thread_port_t;

extern "C" {
    pub fn mach_thread_self() -> thread_port_t;
}

#[cfg(test)]
mod tests {
    use mach_init::*;
    use port::*;

    #[test]
    fn mach_thread_self_test() {
        unsafe {
            let this_thread = mach_thread_self();
            assert!(this_thread != MACH_PORT_NULL);
            assert!(this_thread != MACH_PORT_DEAD);
        }
    }
}

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
wasmtime-27.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/mach_init.rs
wasmtime-26.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/mach_init.rs
wasmtime-25.0.2 ./ext/cargo-vendor/mach2-0.4.2/src/mach_init.rs
wasmtime-25.0.1 ./ext/cargo-vendor/mach2-0.4.2/src/mach_init.rs
wasmtime-25.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/mach_init.rs
wasmtime-24.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/mach_init.rs
wasmtime-23.0.2 ./ext/cargo-vendor/mach2-0.4.2/src/mach_init.rs
wasmtime-22.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/mach_init.rs
wasmtime-21.0.1 ./ext/cargo-vendor/mach2-0.4.2/src/mach_init.rs
wasmtime-20.0.2 ./ext/cargo-vendor/mach2-0.4.2/src/mach_init.rs
wasmtime-20.0.0 ./ext/cargo-vendor/mach2-0.4.2/src/mach_init.rs
wasmtime-18.0.3 ./ext/cargo-vendor/mach-0.3.2/src/mach_init.rs
wasmtime-17.0.1 ./ext/cargo-vendor/mach-0.3.2/src/mach_init.rs
wasmtime-17.0.0 ./ext/cargo-vendor/mach-0.3.2/src/mach_init.rs
wasmtime-16.0.0 ./ext/cargo-vendor/mach-0.3.2/src/mach_init.rs
wasmtime-15.0.1 ./ext/cargo-vendor/mach-0.3.2/src/mach_init.rs
wasmtime-15.0.0 ./ext/cargo-vendor/mach-0.3.2/src/mach_init.rs
wasmtime-14.0.4 ./ext/cargo-vendor/mach-0.3.2/src/mach_init.rs
wasmtime-14.0.3 ./ext/cargo-vendor/mach-0.3.2/src/mach_init.rs
wasmtime-14.0.1 ./ext/cargo-vendor/mach-0.3.2/src/mach_init.rs