primitives_linux.odin 151 B

123456789
  1. #+build linux
  2. #+private
  3. package sync
  4. import "core:sys/linux"
  5. _current_thread_id :: proc "contextless" () -> int {
  6. return cast(int) linux.gettid()
  7. }