0.4.1
Loading...
Searching...
No Matches
Sleep.hpp
Go to the documentation of this file.
1// This file is part of INSTINCT, the INS Toolkit for Integrated
2// Navigation Concepts and Training by the Institute of Navigation of
3// the University of Stuttgart, Germany.
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
9/// @file Sleep.hpp
10/// @brief Class to catch system signals and sleep
11/// @author T. Topp (topp@ins.uni-stuttgart.de)
12/// @date 2020-03-10
13
14#pragma once
15
16#include <cstddef>
17
18namespace NAV::Sleep
19{
20/// @brief Wait the thread till sigusr signal is send
21void waitForSignal(bool showText = false);
22
23/// @brief Wait the thread till time passes
24/// @param[in] seconds Time to sleep in seconds
25void countDownSeconds(size_t seconds);
26
27} // namespace NAV::Sleep
void countDownSeconds(size_t seconds)
Wait the thread till time passes.
Definition Sleep.cpp:86
void waitForSignal(bool showText=false)
Wait the thread till sigusr signal is send.
Definition Sleep.cpp:59