blob: 1f6efd8f753644531b6c77dcafdaa9ae36ede7be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#+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()
}
|