MySQL 9.1.0
Source Code Documentation
my_signal_handler_imp Class Reference

An implementation of the signal handler registration service. More...

#include <mysql_signal_handler_imp.h>

Static Public Member Functions

static mysql_service_status_t add (int signal_no, my_signal_handler_callback_t callback) noexcept
 Implement the registration of the callback for a specific signal. More...
 
static mysql_service_status_t remove (int signal_no, my_signal_handler_callback_t callback) noexcept
 Implement the de-registration of the callback for a specific signal. More...
 

Detailed Description

An implementation of the signal handler registration service.

Member Function Documentation

◆ add()

mysql_service_status_t my_signal_handler_imp::add ( int  signal_no,
my_signal_handler_callback_t  callback 
)
staticnoexcept

Implement the registration of the callback for a specific signal.

Note
Registration fails if there is already a registered callback for the same signal.
Parameters
signal_nosignal to register for
callbackthe callback to call
Return values
falsesuccess
truefailure
See also
mysql_service_host_application_signal_t

◆ remove()

mysql_service_status_t my_signal_handler_imp::remove ( int  signal_no,
my_signal_handler_callback_t  callback 
)
staticnoexcept

Implement the de-registration of the callback for a specific signal.

Note
If the callback is not registered before, un-registration fails.
Parameters
signal_nosignal to register for
callbackthe callback to call
Return values
falsesuccess
truefailure
See also
mysql_service_host_application_signal_t

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