3 ms·
Critical sections are very old, and bloated version of a mutex, but there isn't a good reason to use them today. Today you can use SRWLock or WaitOnAddress on
by TinkersW 1y ago
Critical sections are very old, and bloated version of a mutex, but there isn't a good reason to use them today.
Today you can use SRWLock or WaitOnAddress on Windows(or std::shared_mutex for portable impl, but not std::mutex because reasons).