clean up, add documentation, fix lint errors

This commit is contained in:
Ross Kinder
2015-12-23 14:09:41 -05:00
parent 9cc70cf455
commit b31c1472a0
15 changed files with 191 additions and 130 deletions

View File

@@ -5,6 +5,6 @@ import "unsafe"
// #include <pthread.h>
import "C"
func getThreadId() uintptr {
func getThreadID() uintptr {
return uintptr(unsafe.Pointer(C.pthread_self()))
}