go-openssl/utils/thread_id.go
JT Olds 053d794fe5 space monkey internal commit export
[katamari commit: 66d3bf715795d3696ca37003fba5dba1af7ffacf]
2014-01-20 19:29:56 +00:00

14 lines
369 B
Go

// Copyright (C) 2014 Space Monkey, Inc.
// Package utils provides some small things that implementation of the OpenSSL
// wrapper library needed.
package utils
import (
"unsafe"
)
// ThreadId returns the current runtime's thread id. Thanks to Gustavo Niemeyer
// for this. https://github.com/niemeyer/qml/blob/master/tref/tref.go
func ThreadId() unsafe.Pointer