MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / Submit

Method Submit

Src/Base/AMReX_BackgroundThread.cpp:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void BackgroundThread::Submit (std::function<void()>&& a_f)
39{
40 std::scoped_lock lck(m_mutx);
41 m_func.emplace(std::move(a_f));
42 m_job_cond.notify_one();
43}
44
45void BackgroundThread::Submit (std::function<void()> const& a_f)
46{

Callers 1

SubmitFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected