nativethread 0.2.0

No-dependency library that provides native thread operations in a wide variety of platforms
Documentation
# nativethread

This Rust crate provides native thread functions for a wide variety of platforms.
It is a self-contained crate, with no dependencies.
The following platforms are supported:

* Linux
* OpenBSD
* FreeBSD
* NetBSD
* Illumos
* Solaris
* Haiku
* MacOS

## Usage

Add the following in your `Corgo.toml`:

~~~toml
[dependencies]
nativethread = "0.2.0"
~~~

### Getting the Thread Native ID

Just call `nativethread::get_id()`, which returns the native thread ID as `u64`:

~~~rust
fn main() {
    let tid = nativethread::get_id();
    println!("native thread ID: {tid}");
}
~~~

## License

This crate is licensed under [MIT](https://git.sr.ht/~yuce/nativethread-rs/tree/main/item/LICENSE).