Files
Odin/core/sync/primitives_openbsd.odin
2023-05-25 12:17:39 +01:00

16 lines
284 B
Odin

//+build openbsd
//+private
package sync
foreign import libc "system:c"
@(default_calling_convention="c")
foreign libc {
@(link_name="getthrid", private="file")
_unix_getthrid :: proc() -> int ---
}
_current_thread_id :: proc "contextless" () -> int {
return _unix_getthrid()
}