26 ms·
I mean you can put a critical section inside of shared memory, but the heavy mutex is used for situations where you need to actually name the mutex, then have a
by Dwedit 1y ago
I mean you can put a critical section inside of shared memory, but the heavy mutex is used for situations where you need to actually name the mutex, then have another process open it by name. Example uses include preventing multiple instances of a single program from running. Not the kind of thing you'd use a std::mutex or critical section for.
- Dwedit 1y agonote: Do not actually put a critical section inside of shared memory. They allocate semaphores specific to one process.