MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / SchedulerThreadUnsafeEmpty

Method SchedulerThreadUnsafeEmpty

oneflow/core/vm/virtual_machine_engine.cpp:460–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460bool VirtualMachineEngine::SchedulerThreadUnsafeEmpty() const {
461 return pending_instruction_list().thread_unsafe_size() == 0
462 && local_pending_instruction_list().empty() && lively_instruction_list_.empty()
463 && active_stream_list().empty() && probe_list_.thread_unsafe_size() == 0
464 && local_probe_list_.empty();
465}
466
467bool VirtualMachineEngine::SchedulerEmpty() const {
468 // hook and size will be check in pending_instruction_list().empty().

Callers 1

ScheduleLoopMethod · 0.80

Calls 2

thread_unsafe_sizeMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected