A novice
CodePudding user response:
Oneself the topCodePudding user response:
Lock is what to do?CodePudding user response:
When the child thread and thread synchronization access change variables, need to lock, or a variable's value is not determined, and easy to collapseCodePudding user response:
PostMessage thread-safe,CodePudding user response:
Postmessage don't need a lockCodePudding user response:
The atomic operation of multiple threads to read and write to lock, see your particle degree of the global variablesCodePudding user response:
"Windows core programming"CodePudding user response:
InterlockedExchange with other code is an error, you will not be ok,