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

7
thread_linux.go Normal file
View File

@@ -0,0 +1,7 @@
package xmlsec
import "syscall"
func getThreadId() uintptr {
return uintptr(syscall.Gettid())
}