fix getting the current thread on linux & mac

This commit is contained in:
Ross Kinder
2015-12-23 12:07:04 -05:00
parent b390a3e30a
commit cccbc3e05b
3 changed files with 22 additions and 10 deletions

10
thread_darwin.go Normal file
View File

@@ -0,0 +1,10 @@
package xmlsec
import "unsafe"
// #include <pthread.h>
import "C"
func getThreadId() uintptr {
return uintptr(unsafe.Pointer(C.pthread_self()))
}