| 36 | } |
| 37 | |
| 38 | void 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 | |
| 45 | void BackgroundThread::Submit (std::function<void()> const& a_f) |
| 46 | { |