mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Fix array is_available race cases (#1468)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user