darwin: add threading support and use it by default

This commit is contained in:
Ayke van Laethem
2025-01-28 15:12:50 +01:00
committed by Ron Evans
parent 93f40992c1
commit 0e43146d32
3 changed files with 44 additions and 4 deletions
+11
View File
@@ -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