1

Cleanup SchedulerService.h

This commit is contained in:
2022-12-08 21:12:29 +01:00
parent e6ad7a56aa
commit 8db18136c1

View File

@ -25,7 +25,13 @@ public:
MakeUnmovable(SchedulerService)
// Helper that directly constructs the thread, then readys it
/**
* Construct a thread inplace and add it to the schedulers ready queue.
*
* @tparam T The type of thread to construct
* @param args The arguments for the thread's constructor
* @return The constructed thread's id
*/
template<typename T, typename... Args>
uint32_t ready(Args... args) {
Memory::unique_ptr<Thread> thread = Memory::make_unique<T>(std::forward<Args>(args)...);