Compiler reordering around mutex boundaries?

前端 未结 6 823
心在旅途
心在旅途 2020-12-17 23:14

Suppose I have my own non-inline functions LockMutex and UnlockMutex, which are using some proper mutex - such as boost - inside. How will the compiler know not to reorder o

6条回答
提交回复
热议问题