Replies: 3 comments
-
There is LockOSThread() for preveting golang from swithing the goroutine to another thread. |
Beta Was this translation helpful? Give feedback.
0 replies
-
OK. How about embedding code in C/C++ ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a strong set C API and want to provide it in Golang source code. But some my API non-thread safe. Could you provide any idea how to synchronize C API calls and prevent Golang native (OS) invoke thread switching?
Beta Was this translation helpful? Give feedback.
All reactions