kernel/condition_variable: Add a ConditionVariable::EntriesCount() routine.

Will be useful in changing the XSI subsystems to use condvars.
This commit is contained in:
Augustin Cavalier 2023-04-26 17:08:15 -04:00
parent 484bf053dc
commit d8e4f52b78

View File

@ -65,6 +65,7 @@ public:
static void NotifyAll(const void* object, status_t result);
void Add(ConditionVariableEntry* entry);
int32 EntriesCount() { return atomic_get(&fEntriesCount); }
// Convenience methods, no ConditionVariableEntry required.
status_t Wait(uint32 flags = 0, bigtime_t timeout = 0);