Dataflow Runtime API  4.0.1.0
Public Types | Static Public Member Functions | List of all members
imt::base::os::linux::Process Class Reference

Helper class to call process specific functions. More...

#include <Imt.Base.OS.Linux/Process.h>

Public Types

using HandlerFunction = void(*)(int32_t)
 Defines the signal handler function signature. More...
 

Static Public Member Functions

static void exit (int32_t exitCode) noexcept
 Exits the current process. More...
 
static void setSignalHandler (int32_t signalNumber, HandlerFunction function) noexcept
 Sets the signal handler for the given signal. More...
 
static void signal (int32_t signalNumber) noexcept
 Signals the given signal number. More...
 
static void start (std::string const &command) noexcept
 Starts the given executable if it exists. More...
 
static void resetSignalHandler (int32_t signalNumber) noexcept
 Resets the signal handler for the given signal. More...
 

Detailed Description

Helper class to call process specific functions.

Member Typedef Documentation

◆ HandlerFunction

Defines the signal handler function signature.

Member Function Documentation

◆ exit()

static void imt::base::os::linux::Process::exit ( int32_t  exitCode)
staticnoexcept

Exits the current process.

Parameters
exitCodeThe value to return as exit code

◆ resetSignalHandler()

static void imt::base::os::linux::Process::resetSignalHandler ( int32_t  signalNumber)
staticnoexcept

Resets the signal handler for the given signal.

Parameters
signalNumberThe signal number

◆ setSignalHandler()

static void imt::base::os::linux::Process::setSignalHandler ( int32_t  signalNumber,
HandlerFunction  function 
)
staticnoexcept

Sets the signal handler for the given signal.

Parameters
signalNumberThe signal number
functionThe handler function

◆ signal()

static void imt::base::os::linux::Process::signal ( int32_t  signalNumber)
staticnoexcept

Signals the given signal number.

Parameters
signalNumberThe signal number

◆ start()

static void imt::base::os::linux::Process::start ( std::string const &  command)
staticnoexcept

Starts the given executable if it exists.

Parameters
commandThe command to be handed over to the system's command processor

The documentation for this class was generated from the following file: