YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
task_impl.cpp
Go to the documentation of this file.
2
3namespace yaclib {
4namespace detail {
5
6void Start(BaseCore* head, IExecutor& e) noexcept {
8 head->_executor = &e;
9 e.Submit(*head);
10}
11
12void Start(BaseCore* head) noexcept {
14 head->_executor->Submit(*head);
15}
16
17} // namespace detail
18
19template class Task<>;
20
21} // namespace yaclib
YACLIB_INLINE BaseCore * MoveToCaller(BaseCore *head) noexcept
Definition core.hpp:36
void Start(BaseCore *head, IExecutor &e) noexcept
Definition task_impl.cpp:6
Contract< V, E > MakeContract()
Creates related future and promise.
Definition contract.hpp:25