fix getting the current thread on linux & mac
This commit is contained in:
10
thread_darwin.go
Normal file
10
thread_darwin.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package xmlsec
|
||||
|
||||
import "unsafe"
|
||||
|
||||
// #include <pthread.h>
|
||||
import "C"
|
||||
|
||||
func getThreadId() uintptr {
|
||||
return uintptr(unsafe.Pointer(C.pthread_self()))
|
||||
}
|
||||
Reference in New Issue
Block a user