Tag: deadlock
2 posts
-
C++ scoped_lock — Scoped locking, std::lock, and deadlock
Lock several mutexes at once with C++17 std::scoped_lock to avoid deadlock, and when lock_guard or unique_lock fits better, with a bank-transfer example.
-
Asio Deadlock Debugging: Async Callbacks, Locks, and Strands
Hidden deadlocks in Boost.Asio: mutex + condition_variable with async completion, lock ordering, and fixes with strands, std::lock, and thread dumps.