Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
signals.hh File Reference
#include "types.hh"
#include "error.hh"
#include "logging.hh"
#include <functional>
#include "signals-impl.hh"

Go to the source code of this file.

Classes

struct  nix::InterruptCallback
 

Functions

void nix::setInterruptThrown ()
 
void nix::checkInterrupt ()
 
 nix::MakeError (Interrupted, BaseError)
 
std::unique_ptr< InterruptCallbacknix::createInterruptCallback (std::function< void()> callback)
 

Function Documentation

◆ checkInterrupt()

void nix::checkInterrupt ( )
inline
Note
Does nothing on Windows

◆ createInterruptCallback()

std::unique_ptr< InterruptCallback > nix::createInterruptCallback ( std::function< void()> callback)

Register a function that gets called on SIGINT (in a non-signal context).

Note
Does nothing on Windows

◆ MakeError()

nix::MakeError ( Interrupted ,
BaseError  )
Note
Never will happen on Windows

◆ setInterruptThrown()

void nix::setInterruptThrown ( )
Note
Does nothing on Windows