| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // ====================================================================== | ||
| 2 | // \title LinuxTimerImpl.cpp | ||
| 3 | // \author tim | ||
| 4 | // \brief cpp file for LinuxTimer component implementation class | ||
| 5 | // | ||
| 6 | // \copyright | ||
| 7 | // Copyright 2009-2015, by the California Institute of Technology. | ||
| 8 | // ALL RIGHTS RESERVED. United States Government Sponsorship | ||
| 9 | // acknowledged. | ||
| 10 | // | ||
| 11 | // ====================================================================== | ||
| 12 | |||
| 13 | #include <Fw/FPrimeBasicTypes.hpp> | ||
| 14 | #include <Svc/LinuxTimer/LinuxTimer.hpp> | ||
| 15 | |||
| 16 | namespace Svc { | ||
| 17 | |||
| 18 | // ---------------------------------------------------------------------- | ||
| 19 | // Construction, initialization, and destruction | ||
| 20 | // ---------------------------------------------------------------------- | ||
| 21 | |||
| 22 |
2/2✓ Branch 2 taken 1 times.
✓ Branch 5 taken 1 times.
|
1 | LinuxTimer ::LinuxTimer(const char* const compName) : LinuxTimerComponentBase(compName), m_quit(false) {} |
| 23 | |||
| 24 | 2 | LinuxTimer ::~LinuxTimer() {} | |
| 25 | |||
| 26 | 1 | void LinuxTimer::quit() { | |
| 27 | 1 | this->m_mutex.lock(); | |
| 28 | 1 | this->m_quit = true; | |
| 29 | 1 | this->m_mutex.unLock(); | |
| 30 | 1 | } | |
| 31 | |||
| 32 | } // end namespace Svc | ||
| 33 |