MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / wait_worker

Method wait_worker

imperative/src/impl/transformations/trace.cpp:881–886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

879}
880
881void CompiledTransformation::wait_worker() {
882 mgb_assert(m_executable != nullptr);
883 std::unique_lock lock{m_mutex};
884 m_cv.wait(lock, [&] { return m_graph_status == 0; });
885 lock.unlock();
886}
887
888std::exception_ptr CompiledTransformation::set_exception(
889 std::exception_ptr exc) noexcept {

Callers

nothing calls this directly

Calls 2

waitMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected