blob: 66da0745ae26de1e7175cb7635d1b6d4923330c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#+private
package sync
foreign import libc "system:c"
foreign libc {
_lwp_self :: proc "c" () -> i32 ---
}
_current_thread_id :: proc "contextless" () -> int {
return int(_lwp_self())
}
|