10 #include "ErrorBase.h"
11 #include "HAL/Task.hpp"
21 static const uint32_t kDefaultPriority = 60;
25 Task& operator=(
const Task&) =
delete;
28 template <
class Function,
class... Args>
29 Task(
const std::string& name, Function&&
function, Args&&... args);
33 bool joinable()
const noexcept;
36 std::thread::id get_id()
const noexcept;
37 std::thread::native_handle_type native_handle();
49 std::string m_taskName;
50 bool HandleError(STATUS results);
std::string GetName() const
Returns the name of the task.
Definition: Task.cpp:99
bool SetPriority(int32_t priority)
This routine changes a task's priority to a specified priority.
Definition: Task.cpp:89
Base class for most objects.
Definition: ErrorBase.h:66
int32_t GetPriority()
Gets the priority of a task.
Definition: Task.cpp:72
Wrapper class around std::thread that allows changing thread priority.
Definition: Task.h:19
bool Verify()
Verifies a task still exists.
Definition: Task.cpp:62