Re:Go 1.16 Release Notes
by _ph_ on Tuesday February 16, 2021 @06:03PM
(#26159952)
I have created shared libraries with Go which can be called from C, no problems. Those shared libraries can start their own goroutines quite fine and can call back into the C application. Usually it is a good idea to call back into the C application from the thread the Go function called from C was running.
[ Parent
| on HN ]
Is there a way to bind a goroutine to a specific thread? Afaik, all C interop goes through a global lock because the runtime is weird.
runtime.LockOSThread?