mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 14:03:39 +00:00
darwin: add threading support and use it by default
This commit is contained in:
committed by
Ron Evans
parent
93f40992c1
commit
0e43146d32
@@ -0,0 +1,11 @@
|
||||
//go:build darwin
|
||||
|
||||
package task
|
||||
|
||||
import "unsafe"
|
||||
|
||||
// MacOS uses a pointer so unsafe.Pointer should be fine:
|
||||
//
|
||||
// typedef struct _opaque_pthread_t *__darwin_pthread_t;
|
||||
// typedef __darwin_pthread_t pthread_t;
|
||||
type threadID unsafe.Pointer
|
||||
Reference in New Issue
Block a user