Call C function With Global Variable From Different Goroutine

后端 未结 0 746
感动是毒
感动是毒 2020-12-29 08:45

For examples, I have a goroutine running a C loop updating a global variable, and another goroutine read that variable, will a race condition happen? And since Cgo will use

相关标签:
回答
  • 消灭零回复
提交回复
热议问题