Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: