How can std::try_to_lock be used with a mutex locker?

后端 未结 0 401
忘掉有多难
忘掉有多难 2020-12-03 02:45

The empty class std::try_to_lock can be used to alter the behaviour of lock_guard (and other similar types), so that it doesn\'t block if the mutex is already locked: for ex

相关标签:
回答
  • 消灭零回复
提交回复
热议问题