43 int previousPid = application->getPid();
45 std::this_thread::sleep_for(std::chrono::milliseconds(timer));
47 if (application->getPid() == previousPid)
52 application->setStatusWriteBlock(
false);
ApplicationStopperPtr getStopper()
Returns the stopper used by this StopStrategy.
void stop(Data_Structure::ApplicationInstancePtr application) override
Stops an application.
StopAndKill(ApplicationStopperPtr stopper, int delay)
Constructor that sets the ApplicationStopper used by this StopStrategy.
ApplicationStopperPtr stopper
StopStrategy(ApplicationStopperPtr stopper)
std::shared_ptr< ApplicationInstance > ApplicationInstancePtr
std::shared_ptr< ApplicationStopper > ApplicationStopperPtr