name of variables in english ; use the eo::log instead of cerr ; doc grouping
This commit is contained in:
parent
8e70cbea01
commit
44d1ab1bc2
2 changed files with 13 additions and 5 deletions
|
|
@ -28,11 +28,18 @@
|
|||
#pragma warning(disable:4786)
|
||||
#endif
|
||||
|
||||
#include <utils/eoLogger.h>
|
||||
|
||||
#include <signal.h>
|
||||
#include <iostream>
|
||||
|
||||
/**
|
||||
* @addtogroup Continuators
|
||||
* @{
|
||||
*/
|
||||
|
||||
// --- Global variables - but don't know what else to do - MS ---
|
||||
bool arret_demande = false;
|
||||
bool ask_for_stop = false;
|
||||
bool existCtrlCContinue = false;
|
||||
|
||||
//
|
||||
|
|
@ -46,9 +53,10 @@ void signal_handler( int sig )
|
|||
#ifdef SIGQUIT
|
||||
signal( SIGINT, SIG_IGN );
|
||||
signal( SIGQUIT, SIG_IGN );
|
||||
std::cerr << "Ctrl C entered ... closing down" << std::endl ;
|
||||
arret_demande = true;
|
||||
eo::log << eo::logging << "Ctrl C entered ... closing down" << std::endl ;
|
||||
ask_for_stop = true;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
* @{
|
||||
*/
|
||||
|
||||
extern bool arret_demande, existCtrlCContinue;
|
||||
extern bool ask_for_stop, existCtrlCContinue;
|
||||
|
||||
extern void signal_handler( int sig );
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ public:
|
|||
virtual bool operator() ( const eoPop<EOT>& _vEO )
|
||||
{
|
||||
(void)_vEO;
|
||||
if (arret_demande)
|
||||
if (ask_for_stop)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue