ollama source for Momentry Core verification
This commit is contained in:
10
x/internal/mlxthread/threadid_darwin_test.go
Normal file
10
x/internal/mlxthread/threadid_darwin_test.go
Normal file
@@ -0,0 +1,10 @@
|
||||
//go:build darwin
|
||||
|
||||
package mlxthread
|
||||
|
||||
import "syscall"
|
||||
|
||||
func currentThreadID() uint64 {
|
||||
id, _, _ := syscall.RawSyscall(syscall.SYS_THREAD_SELFID, 0, 0, 0)
|
||||
return uint64(id)
|
||||
}
|
||||
Reference in New Issue
Block a user