F´ Flight Software - C/C++ Documentation  devel
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 
12 }
13 
15  return Os::TaskInterface::Status::UNKNOWN_ERROR;
16 }
17 
19 
21 
23  return nullptr;
24 }
25 
27  return Os::TaskInterface::Status::UNKNOWN_ERROR;
28 }
29 
31  return true;
32 }
33 
35  FW_ASSERT(0);
36  return Os::Task::Status::UNKNOWN_ERROR;
37 }
38 
39 
40 }
41 }
42 }
#define FW_ASSERT(...)
Definition: Assert.hpp:14
void suspend(SuspensionType suspensionType) override
suspend the task given the suspension type
Definition: Task.cpp:18
Status _delay(Fw::TimeInterval interval) override
delay the current task
Definition: Task.cpp:34
bool isCooperative() override
determine if the task requires cooperative multitasking
Definition: Task.cpp:30
void resume() override
resume a suspended task
Definition: Task.cpp:20
void onStart() override
perform required task start actions
Definition: Task.cpp:10
Status start(const Arguments &arguments) override
start the task
Definition: Task.cpp:26
Status join() override
block until the task has ended
Definition: Task.cpp:14
TaskHandle * getHandle() override
return the underlying task handle (implementation specific)
Definition: Task.cpp:22
Task handle representation.
Definition: Task.hpp:24