Re: [go-nuts] Should I always call runtime.LockOSThread() before calling C function?

2020-10-25 Thread ByeongJoon Gong
d of go routine. 2020년 10월 25일 일요일 오전 2시 53분 42초 UTC+9에 Ian Lance Taylor님이 작성: > On Sat, Oct 24, 2020 at 10:30 AM ByeongJoon Gong > wrote: > > > > I'm developing speech-to-text inference server with cpp libraries > (wav2letter) > > > > according to runtime doc

[go-nuts] Should I always call runtime.LockOSThread() before calling C function?

2020-10-24 Thread ByeongJoon Gong
Hi, I'm developing speech-to-text inference server with cpp libraries (wav2letter) according to runtime docs (https://golang.org/src/runtime/proc.go?s=108905:108924#L3803), "A goroutine should call LockOSThread before calling OS services or non-Go library functions that depend on per-thread s