From 98ff535583eb7038e069b9f7ba36be482b87aed9 Mon Sep 17 00:00:00 2001 From: Malavan Sotheeswaran Date: Tue, 3 Oct 2023 10:19:53 -0700 Subject: [PATCH] fix comment --- src/readwritelock.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/readwritelock.h b/src/readwritelock.h index 05385e4e7..c14e9ea01 100644 --- a/src/readwritelock.h +++ b/src/readwritelock.h @@ -42,9 +42,9 @@ class readWriteLock { while (m_readCount > 0) m_cv.wait(rm); if (exclusive) { - /* Another thread might have the write lock while we have the read lock - but won't be able to release it until they can acquire the read lock - so release the read lock and try again instead of waiting to avoid deadlock */ + /* Another thread might have the write lock while we have the internal lock + but won't be able to release it until they can acquire the internal lock + so release the internal lock and try again instead of waiting to avoid deadlock */ while(!m_writeLock.try_lock()) m_cv.wait(rm); }