Initial version
This commit is contained in:
commit
04b878f078
28 changed files with 1771 additions and 0 deletions
15
example/include/process/process_state_extensions.hpp
Normal file
15
example/include/process/process_state_extensions.hpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue