mirror of https://github.com/pvnis/srsRAN_4G.git
Delete move constructor and move assignment operator explictly for mac_pcap_base and s1ap_pcap classes.
Move emergency handlers header file into the support folder. Refactored signal handling: - Remove the dependency with the running static variable in the header file. - Move implementations down to cc files. - Allow specifying a new signal handler that will be used to stop the applications. - Move signal handling files to support.master
parent
9075251627
commit
dacf40f63e
@ -0,0 +1,27 @@
|
||||
/**
|
||||
*
|
||||
* \section COPYRIGHT
|
||||
*
|
||||
* Copyright 2013-2021 Software Radio Systems Limited
|
||||
*
|
||||
* By using this file, you agree to the terms and conditions set
|
||||
* forth in the LICENSE file which can be found at the top level of
|
||||
* the distribution.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file signal_handler.h
|
||||
* @brief Common signal handling methods for all srsRAN applications.
|
||||
*/
|
||||
|
||||
#ifndef SRSRAN_SIGNAL_HANDLER_H
|
||||
#define SRSRAN_SIGNAL_HANDLER_H
|
||||
|
||||
using srsran_signal_hanlder = void (*)();
|
||||
|
||||
/// Registers the specified function to be called when the user interrupts the program execution (eg: via Ctrl+C).
|
||||
/// Passing a null function pointer disables the current installed handler.
|
||||
void srsran_register_signal_handler(srsran_signal_hanlder handler);
|
||||
|
||||
#endif // SRSRAN_SIGNAL_HANDLER_H
|
@ -0,0 +1,12 @@
|
||||
#
|
||||
# Copyright 2013-2021 Software Radio Systems Limited
|
||||
#
|
||||
# By using this file, you agree to the terms and conditions set
|
||||
# forth in the LICENSE file which can be found at the top level of
|
||||
# the distribution.
|
||||
#
|
||||
|
||||
set(SOURCES emergency_handlers.cc
|
||||
signal_handler.cc)
|
||||
|
||||
add_library(support STATIC ${SOURCES})
|
Loading…
Reference in New Issue