MCPcopy Create free account
hub / github.com/KTStephano/StratusGFX / ScheduleTask_

Function ScheduleTask_

Source/Engine/StratusTaskSystem.h:118–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected