MCPcopy Create free account
hub / github.com/ml-explore/mlx / wait

Method wait

mlx/array.cpp:144–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void array::wait() {
145 if (!is_available()) {
146 if (event().valid()) {
147 event().wait();
148 detach_event();
149 }
150 set_status(Status::available);
151 }
152}
153
154void array::eval() {
155 // Ensure the array is ready to be read

Callers 8

terminateMethod · 0.45
synchronizeFunction · 0.45
eval_implFunction · 0.45
evalFunction · 0.45
thread_fnMethod · 0.45
wait_for_oneFunction · 0.45
start_threadsMethod · 0.45

Calls 4

detach_eventFunction · 0.85
set_statusFunction · 0.85
validMethod · 0.80
is_availableFunction · 0.70

Tested by

no test coverage detected