Mir
Public Types | Public Member Functions | List of all members
miral::SetTerminator Class Reference

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
 

Detailed Description

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.

Member Typedef Documentation

◆ Terminator

using miral::SetTerminator::Terminator = std::function<void(int signal)>

Constructor & Destructor Documentation

◆ SetTerminator()

miral::SetTerminator::SetTerminator ( Terminator const &  terminator)
explicit

◆ ~SetTerminator()

miral::SetTerminator::~SetTerminator ( )

Member Function Documentation

◆ operator()()

void miral::SetTerminator::operator() ( mir::Server &  server) const

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

Copyright © 2012-2023 Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.