Mir
|
Set handler for termination requests. terminator will be called following receipt of SIGTERM or SIGINT. The default terminator stop()s the server, replacements should probably do the same in addition to any additional shutdown logic. More...
#include <set_terminator.h>
Public Types | |
using | Terminator = std::function< void(int signal)> |
Public Member Functions | |
SetTerminator (Terminator const &terminator) | |
~SetTerminator () | |
void | operator() (mir::Server &server) const |
Set handler for termination requests. terminator will be called following receipt of SIGTERM or SIGINT. The default terminator stop()s the server, replacements should probably do the same in addition to any additional shutdown logic.
using miral::SetTerminator::Terminator = std::function<void(int signal)> |
|
explicit |
miral::SetTerminator::~SetTerminator | ( | ) |
void miral::SetTerminator::operator() | ( | mir::Server & | server | ) | const |
Copyright © 2012-2025
Canonical Ltd.
Generated on Mon Jan 20 18:43:53 UTC 2025
This documentation is licensed under the GPL version 2 or 3.