blob: ff3ff837fbe9211cafe4b8b831d2c34b6d794ee8 (
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()
}
|