From 4c021b8d8099c41156f24d29969e77164a1629cf Mon Sep 17 00:00:00 2001 From: Sergei Trifonov Date: Thu, 26 May 2022 13:25:50 +0200 Subject: [PATCH] fix comments --- src/Common/ConcurrencyControl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Common/ConcurrencyControl.h b/src/Common/ConcurrencyControl.h index b26a4b95bac..0c30ca3a068 100644 --- a/src/Common/ConcurrencyControl.h +++ b/src/Common/ConcurrencyControl.h @@ -127,7 +127,7 @@ public: granted++; allocated++; return allocated < limit; - // WARNING: `waiter` iterator is invalided after returning false + // WARNING: `waiter` iterator is invalidated after returning false } ConcurrencyControl & parent; @@ -136,7 +136,7 @@ public: const Slots limit; std::mutex mutex; // the following values must be accessed under this mutex - Slots allocated = 0; + Slots allocated = 0; // allocated total (including already released) Slots granted = 0; // allocated, but not yet acquired Slots released = 0; };