Re: [go-nuts] Calling a C function from Go code in cgo must new a thread

2017-08-04 Thread bysui hou
I get it. Thanks a lot 在 2017年8月4日星期五 UTC+8下午8:52:36,Konstantin Khomoutov写道: > > On Fri, Aug 04, 2017 at 03:45:49AM -0700, bysui hou wrote: > > > I'm going to use CGO to call c++ in my project and do some > performance > > tests. So I do research on cgo, and find that calling a C function f

Re: [go-nuts] Calling a C function from Go code in cgo must new a thread

2017-08-04 Thread Konstantin Khomoutov
On Fri, Aug 04, 2017 at 03:45:49AM -0700, bysui hou wrote: > I'm going to use CGO to call c++ in my project and do some performance > tests. So I do research on cgo, and find that calling a C function from Go > code won't block other goroutines from running. I view the cgocall code > (runti