alpaqa 1.0.0a10
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
cancel.hpp File Reference
#include <atomic>
#include <csignal>
#include <memory>
#include <stdexcept>
+ Include dependency graph for cancel.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  alpaqa
 
namespace  alpaqa::detail
 

Functions

template<class Solver >
auto attach_cancellation (Solver &solver)
 Attach SIGINT and SIGTERM handlers to stop the given solver.
 

Variables

std::atomic< void * > solver_to_stop