3 ms·
In C++, RAII locking/unlocking also handles exceptions thrown across the lock seamlessly. Otherwise all lock work would have to be try/catch wrapped and handled
by MontagFTB 4y ago
In C++, RAII locking/unlocking also handles exceptions thrown across the lock seamlessly. Otherwise all lock work would have to be try/catch wrapped and handled correctly.
- loeg 4y ago> Otherwise all lock work would have to be try/catch wrapped and handled correctly. Alternatively, you could ensure your codebase does not use exceptions. (Which is common for "C-style" programmers like GP.)