another attempt to getThreadId work on Linux
This commit is contained in:
parent
eaa0eda72d
commit
bd580e9d6e
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ else:
|
||||||
importc: "pthread_setaffinity_np", header: pthreadh.}
|
importc: "pthread_setaffinity_np", header: pthreadh.}
|
||||||
|
|
||||||
when defined(linux):
|
when defined(linux):
|
||||||
proc syscall(arg: int): int {.varargs, importc: "syscall", header: "<sys/syscall.h>".}
|
proc syscall(arg: int): int {.varargs, importc: "syscall", header: "<unistd.h>".}
|
||||||
var SYS_gettid {.importc, header: "<sys/syscall.h>".}: int
|
var SYS_gettid {.importc, header: "<sys/syscall.h>".}: int
|
||||||
|
|
||||||
#type Pid {.importc: "pid_t", header: "<sys/types.h>".} = distinct int
|
#type Pid {.importc: "pid_t", header: "<sys/types.h>".} = distinct int
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue