mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
task: add more Doxygen comments for PairLock
I need to remind myself why it's there, and not just std::lock. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
parent
dc2dc8d08a
commit
cdef59e2f3
@ -30,7 +30,8 @@ namespace crucible {
|
||||
|
||||
static thread_local TaskStatePtr tl_current_task;
|
||||
|
||||
/// because we don't want to bump -std=c++-17 just to get scoped_lock
|
||||
/// because we don't want to bump -std=c++-17 just to get scoped_lock.
|
||||
/// Also we don't want to self-deadlock if both mutexes are the same mutex.
|
||||
class PairLock {
|
||||
unique_lock<mutex> m_lock1, m_lock2;
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user