blob: cc19174188cc7b406ef91d61ab1abe650f58c8fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/********************* */
/*! \file signal_handlers.h
** \verbatim
** Top contributors (to current version):
** Gereon Kremer
** This file is part of the CVC4 project.
** Copyright (c) 2009-2020 by the authors listed in the file AUTHORS
** in the top-level source directory) and their institutional affiliations.
** All rights reserved. See the file COPYING in the top-level source
** directory for licensing information.\endverbatim
**
** \brief Implementation of signal handlers.
**
** Implementation of signal handlers.
**/
#ifndef CVC4__MAIN__SIGNAL_HANDLERS_H
#define CVC4__MAIN__SIGNAL_HANDLERS_H
namespace CVC4 {
namespace main {
namespace signal_handlers {
/**
* Performs last steps before termination due to a timeout.
* Prints an appropriate message and solver statistics.
*/
void timeout_handler();
/**
* Installs (almost) all signal handlers.
* A handler for SIGALRM is set in time_limit.cpp.
* Also sets callbacks via std::set_unexpected and std:set_terminate.
*/
void install();
/**
* Performs cleanup related to the signal handlers.
*/
void cleanup();
} // namespace signal_handlers
} // namespace main
} // namespace CVC4
#endif /* CVC4__MAIN__SIGNAL_HANDLERS_H */
|