5 #ifndef Os_Posix_Task_hpp_ 6 #define Os_Posix_Task_hpp_ 118 static std::atomic<bool> s_permissions_reported;
Task handle representation.
static constexpr PlatformIntType SUCCESS
~PosixTask()=default
default virtual destructor
void suspend(SuspensionType suspensionType) override
suspend the task given the suspension type
Status _delay(Fw::TimeInterval interval) override
delay the current task
int PlatformIntType
DefaultTypes.hpp provides fallback defaults for the platform types.
PosixTask & operator=(const PosixTask &other)=delete
assignment operator is forbidden
bool m_is_valid
Is the above descriptor valid.
PermissionExpectation
Enumeration of permission expectations.
pthread_t m_task_descriptor
Posix task descriptor.
TaskHandle * getHandle() override
return the underlying task handle (implementation specific)
PosixTask()=default
default constructor
C++-compatible configuration header for fprime configuration.
Expect that you do not hold necessary permissions.
Expect that you hold necessary permissions.
Status join() override
block until the task has ended
Status start(const Arguments &arguments) override
start the task
void resume() override
resume a suspended task
void onStart() override
perform required task start actions
Posix task implementation as driven by pthreads implementation.