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:
parent
3a5e38ab9d
commit
f6dc30e52d
2 changed files with 2 additions and 2 deletions
|
|
@ -141,7 +141,7 @@ else:
|
||||||
header: "<pthread.h>".} = cint
|
header: "<pthread.h>".} = cint
|
||||||
else:
|
else:
|
||||||
type
|
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",
|
Pthread_attr {.importc: "pthread_attr_t",
|
||||||
header: "<sys/types.h>".} = object
|
header: "<sys/types.h>".} = object
|
||||||
ThreadVarSlot {.importc: "pthread_key_t",
|
ThreadVarSlot {.importc: "pthread_key_t",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
cmd: "nim $target --hints:on --threads:on $options $file"
|
matrix: "--mm:refc; --mm:orc"
|
||||||
action: compile
|
action: compile
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue