mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-08-02 16:51:53 +00:00
Added return value to addThread
This commit is contained in:
parent
26876a9d99
commit
2eb4705ae6
@ -68,9 +68,13 @@ namespace sta
|
|||||||
* @ingroup tacos_api
|
* @ingroup tacos_api
|
||||||
*/
|
*/
|
||||||
template<typename T, typename ... Args>
|
template<typename T, typename ... Args>
|
||||||
void addThread(std::list<uint16_t> states, Args ... args)
|
std::shared_ptr<T> addThread(std::list<uint16_t> states, Args ... args)
|
||||||
{
|
{
|
||||||
Manager::instance()->registerThread(std::make_shared<T>(args...), states);
|
std::shared_ptr<T> thread_ptr = std::make_shared<T>(args...);
|
||||||
|
|
||||||
|
Manager::instance()->registerThread(thread_ptr, states);
|
||||||
|
|
||||||
|
return thread_ptr;
|
||||||
}
|
}
|
||||||
} // namespace tacos
|
} // namespace tacos
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user