fix comments

This commit is contained in:
Sergei Trifonov 2022-05-26 13:25:50 +02:00
parent 27fca17421
commit 4c021b8d80

View File

@ -127,7 +127,7 @@ public:
granted++; granted++;
allocated++; allocated++;
return allocated < limit; return allocated < limit;
// WARNING: `waiter` iterator is invalided after returning false // WARNING: `waiter` iterator is invalidated after returning false
} }
ConcurrencyControl & parent; ConcurrencyControl & parent;
@ -136,7 +136,7 @@ public:
const Slots limit; const Slots limit;
std::mutex mutex; // the following values must be accessed under this mutex 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 granted = 0; // allocated, but not yet acquired
Slots released = 0; Slots released = 0;
}; };