MCPcopy Create free account
hub / github.com/BVLC/caffe / CheckForSignals

Method CheckForSignals

src/caffe/util/signal_handler.cpp:99–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99SolverAction::Enum SignalHandler::CheckForSignals() const {
100 if (GotSIGHUP()) {
101 return SIGHUP_action_;
102 }
103 if (GotSIGINT()) {
104 return SIGINT_action_;
105 }
106 return SolverAction::NONE;
107}
108
109// Return the function that the solver can use to find out if a snapshot or
110// early exit is being requested.

Callers

nothing calls this directly

Calls 2

GotSIGHUPFunction · 0.85
GotSIGINTFunction · 0.85

Tested by

no test coverage detected