Fix array is_available race cases (#1468)

This commit is contained in:
Awni Hannun
2024-10-07 19:13:50 -07:00
committed by GitHub
parent 9b12093739
commit 3274c6a087
9 changed files with 77 additions and 23 deletions

View File

@@ -20,6 +20,9 @@ class Event {
// Signal the event at its current value
void signal();
// Check if the event has been signaled at its current value
bool is_signaled() const;
// Check if the event is valid
bool valid() const {
return event_ != nullptr;