F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
DefaultTask.cpp
Go to the documentation of this file.
1// ======================================================================
2// \title Os/Stub/test/DefaultTask.cpp
3// \brief sets default Os::Task to test stub implementation via linker
4// ======================================================================
5#include <cerrno>
6#include "Os/Task.hpp"
7#include "Os/Stub/Task.hpp"
8#include "Os/Delegate.hpp"
9#include <sys/time.h>
10
11namespace Os {
12 TaskInterface* TaskInterface::getDelegate(TaskHandleStorage& aligned_new_memory) {
13 return Os::Delegate::makeDelegate<TaskInterface, Os::Stub::Task::StubTask>(aligned_new_memory);
14 }
15
16}
U8 TaskHandleStorage[FW_TASK_HANDLE_MAX_SIZE]
Definition Os.hpp:14
static TaskInterface * getDelegate(TaskHandleStorage &aligned_placement_new_memory)
provide a pointer to a task delegate object