MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / submit_external_wait_for

Method submit_external_wait_for

src/runtime/omp/omp_queue.cpp:621–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621result omp_queue::submit_external_wait_for(const dag_node_ptr& node) {
622 HIPSYCL_DEBUG_INFO << "omp_queue: Submitting wait for external node..."
623 << std::endl;
624
625 if (!node) {
626 return register_error(
627 __acpp_here(),
628 error_info{"omp_queue: node for synchronization is null.",
629 error_type::invalid_parameter_error});
630 }
631
632 _worker([=]() { node->wait(); });
633
634 return make_success();
635}
636
637worker_thread &omp_queue::get_worker() { return _worker; }
638

Callers

nothing calls this directly

Calls 3

register_errorFunction · 0.85
make_successFunction · 0.85
waitMethod · 0.45

Tested by

no test coverage detected