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
More will be a added soon.
Usage
Add the following in your Corgo.toml:
[]
= "0.1.1"
Getting the Thread Native ID
Just call nativethread::get_id(), which returns the native thread ID as i32:
License
This crate is licensed under MIT.