mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 15:52:27 +08:00
17 lines
221 B
Go
17 lines
221 B
Go
//go:build linux
|
|
// +build linux
|
|
|
|
package logger
|
|
|
|
import (
|
|
"strconv"
|
|
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
func (l *Logger) getThreadId() (threadId string) {
|
|
tid := unix.Gettid()
|
|
threadId = strconv.Itoa(tid)
|
|
return threadId
|
|
}
|