If the mutex is currently locked by the same thread calling this function, it produces a deadlock (with undefined behavior). See recursive_mutex for a mutex type that allows multiple locks from the same thread.
If the mutex is currently locked by the same thread calling this function, it produces a deadlock (with undefined behavior). See recursive_mutex for a mutex type that allows multiple locks from the same thread.
Это UB, которое может привести к дедлоку. Дедлок - это когда потоки из-за неправильного использования примитивов синхронизации останавливают выполнение навсегда
Это UB, которое может привести к дедлоку. Дедлок - это когда потоки из-за неправильного использования примитивов синхронизации останавливают выполнение навсегда