fixes Thread initializer for ARC/ORC on Macos (#20368)

* fixes Thread initializer for ARC/ORC

* another try

* fix

* use int
This commit is contained in:
ringabout
2022-09-17 04:35:53 +08:00
committed by GitHub
parent 3a5e38ab9d
commit f6dc30e52d
2 changed files with 2 additions and 2 deletions

View File

@@ -141,7 +141,7 @@ else:
header: "<pthread.h>".} = cint
else:
type
SysThread* {.importc: "pthread_t", header: "<sys/types.h>".} = object
SysThread* {.importc: "pthread_t", header: "<sys/types.h>".} = int
Pthread_attr {.importc: "pthread_attr_t",
header: "<sys/types.h>".} = object
ThreadVarSlot {.importc: "pthread_key_t",

View File

@@ -1,5 +1,5 @@
discard """
cmd: "nim $target --hints:on --threads:on $options $file"
matrix: "--mm:refc; --mm:orc"
action: compile
"""