# nativethread
This Rust crate provides native thread functions for a wide variety of platforms.
The following platforms are supported:
* Linux
* OpenBSD
* FreeBSD
* NetBSD
* Illumos
* Solaris
* Haiku
More will be a added soon.
## Usage
Add the following in your `Corgo.toml`:
~~~toml
[dependencies]
nativethread = "0.1.0"
~~~
### Getting the Thread Native ID
Just call `get_native_thread_id`, which returns an `i32`:
~~~rust
fn main() {
let tid = get_native_thread_id();
println!("thread ID: {tid}");
}
~~~
## License
This crate is licensed under [MIT](LICENSE).