mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 00:44:37 -06:00
21 lines
895 B
C++
21 lines
895 B
C++
// ======================================================================
|
|
// \title Os/Posix/DefaultRawTime.cpp
|
|
// \brief sets default Os::RawTime Posix implementation via linker
|
|
// ======================================================================
|
|
#include "Os/Delegate.hpp"
|
|
#include "Os/Posix/RawTime.hpp"
|
|
|
|
namespace Os {
|
|
|
|
//! \brief get a delegate for RawTimeInterface that intercepts calls for Posix
|
|
//! \param aligned_new_memory: aligned memory to fill
|
|
//! \param to_copy: pointer to copy-constructor input
|
|
//! \return: pointer to delegate
|
|
RawTimeInterface* RawTimeInterface::getDelegate(RawTimeHandleStorage& aligned_new_memory,
|
|
const RawTimeInterface* to_copy) {
|
|
return Os::Delegate::makeDelegate<RawTimeInterface, Os::Posix::RawTime::PosixRawTime, RawTimeHandleStorage>(
|
|
aligned_new_memory, to_copy);
|
|
}
|
|
|
|
} // namespace Os
|