F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Task.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title Os/Stub/Task.cpp
3 // \brief stub implementations for Os::Task
4 // ======================================================================
5 #include "Os/Stub/Task.hpp"
6 namespace Os {
7 namespace Stub {
8 namespace Task {
9 
11 
13  return Os::TaskInterface::Status::UNKNOWN_ERROR;
14 }
15 
17 
19 
21  return nullptr;
22 }
23 
25  return Os::TaskInterface::Status::UNKNOWN_ERROR;
26 }
27 
29  return true;
30 }
31 
33  FW_ASSERT(0);
34  return Os::Task::Status::UNKNOWN_ERROR;
35 }
36 
37 } // namespace Task
38 } // namespace Stub
39 } // namespace Os
Task handle representation.
Definition: Task.hpp:33
TaskHandle * getHandle() override
return the underlying task handle (implementation specific)
Definition: Task.cpp:20
Status start(const Arguments &arguments) override
start the task
Definition: Task.cpp:24
void resume() override
resume a suspended task
Definition: Task.cpp:18
void onStart() override
perform required task start actions
Definition: Task.cpp:10
void suspend(SuspensionType suspensionType) override
suspend the task given the suspension type
Definition: Task.cpp:16
Status join() override
block until the task has ended
Definition: Task.cpp:12
Status _delay(Fw::TimeInterval interval) override
delay the current task
Definition: Task.cpp:32
bool isCooperative() override
determine if the task requires cooperative multitasking
Definition: Task.cpp:28
#define FW_ASSERT(...)
Definition: Assert.hpp:14