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>
Dieser Commit ist enthalten in:
Zygo Blaxell
2022-12-20 20:50:57 -05:00
Ursprung dc2dc8d08a
Commit cdef59e2f3
+2 -1
Datei anzeigen
@@ -30,7 +30,8 @@ namespace crucible {
static thread_local TaskStatePtr tl_current_task; 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 { class PairLock {
unique_lock<mutex> m_lock1, m_lock2; unique_lock<mutex> m_lock1, m_lock2;
public: public: