annotator/example/include/process/process_state_extensions.hpp
Alexander Kobjolke 04b878f078 Initial version
2022-03-01 22:13:15 +01:00

15 lines
395 B
C++

#ifndef PROCESS_LIBPROCESS_INCLUDE_STATE_EXTENSIONS_HPP
#define PROCESS_LIBPROCESS_INCLUDE_STATE_EXTENSIONS_HPP
#include <process_status.hpp>
namespace process::controller::extensions {
inline static bool is_running(const ProcessState state)
{
return ((state == ProcessState::RUNNING) || (state == ProcessState::RESTARTED));
}
}
#endif //PROCESS_LIBPROCESS_INCLUDE_STATE_EXTENSIONS_HPP