if (someAtomicBool) return;
someAtomicBool = false;
Is adequate control for a critical section. This is not the case, right? I think the correct way to do this and achieve the functionality I'm looking for is to check if a mutex is locked or something.
Почему-то мне пришло это в голову [code]if (someAtomicBool) return; someAtomicBool = false; [/code] Is adequate control for a critical section. This is not the case, right? I think the correct way to do this and achieve the functionality I'm looking for is to check if a mutex is locked or something.