primitives_netbsd.odin 192 B

123456789101112
  1. //+private
  2. package sync
  3. foreign import libc "system:c"
  4. foreign libc {
  5. _lwp_self :: proc "c" () -> i32 ---
  6. }
  7. _current_thread_id :: proc "contextless" () -> int {
  8. return int(_lwp_self())
  9. }