deadlock
Threads each waiting for a lock another holds, so none can continue.
Deadlock typically arises when two threads lock two mutexes in opposite orders; std::scoped_lock acquires several mutexes together without deadlocking.
Threads each waiting for a lock another holds, so none can continue.
Deadlock typically arises when two threads lock two mutexes in opposite orders; std::scoped_lock acquires several mutexes together without deadlocking.