| 116 | |
| 117 | template<typename E, typename T> |
| 118 | Async<E> ScheduleTask_(const T& process) { |
| 119 | auto ul = std::unique_lock<std::mutex>(m_); |
| 120 | |
| 121 | const auto index = GetNextThreadIndexForTask_(); |
| 122 | |
| 123 | return CreateAsyncTask_<E, T>(process, index); |
| 124 | } |
| 125 | |
| 126 | Async<void> ScheduleVoidTask_(const std::function<void (void)>& process) { |
| 127 | auto ul = std::unique_lock<std::mutex>(m_); |
nothing calls this directly
no test coverage detected