AlexanderFabisch/OpenANN — pull request #24 by Ruun (2013-04-15 01:00:39+00:00)
Title: add simple interrupt handler class for optimzation process.

This pull request contains a simple class monitoring the standard SIGINT signal from
the environment. It uses the C standard header and can be used to add an external stopping signal.

Usage:

StoppingInterrupt interrupt;
while(opt.step() && !interrupt.isSignaled()) {
// debug output
}

Can be integrated into each optimize() method of the corresponding OpenANN::Optimizer objects.