How to ensure a piece of code is always used by one thread at any given time?

前端 未结 0 1436
暗喜
暗喜 2021-01-06 23:42

I\'m writing a function that needs to use mutable static variables to work (a weird implementation of a message loop). In order to allow only one writer to access those vari

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