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