The same sort of restriction applies to a mutex. For your case, a semaphore would be more appropriate. MSDN says 这篇关于我可以在线程A中输入EnterCriticalSection,然后在线程B中留下LeaveCriticalSection吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!