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)
|
#pragma warning(disable:4786)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <utils/eoLogger.h>
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @addtogroup Continuators
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
// --- Global variables - but don't know what else to do - MS ---
|
// --- Global variables - but don't know what else to do - MS ---
|
||||||
bool arret_demande = false;
|
bool ask_for_stop = false;
|
||||||
bool existCtrlCContinue = false;
|
bool existCtrlCContinue = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
@ -46,9 +53,10 @@ void signal_handler( int sig )
|
||||||
#ifdef SIGQUIT
|
#ifdef SIGQUIT
|
||||||
signal( SIGINT, SIG_IGN );
|
signal( SIGINT, SIG_IGN );
|
||||||
signal( SIGQUIT, SIG_IGN );
|
signal( SIGQUIT, SIG_IGN );
|
||||||
std::cerr << "Ctrl C entered ... closing down" << std::endl ;
|
eo::log << eo::logging << "Ctrl C entered ... closing down" << std::endl ;
|
||||||
arret_demande = true;
|
ask_for_stop = true;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern bool arret_demande, existCtrlCContinue;
|
extern bool ask_for_stop, existCtrlCContinue;
|
||||||
|
|
||||||
extern void signal_handler( int sig );
|
extern void signal_handler( int sig );
|
||||||
|
|
||||||
|
|
@ -73,7 +73,7 @@ public:
|
||||||
virtual bool operator() ( const eoPop<EOT>& _vEO )
|
virtual bool operator() ( const eoPop<EOT>& _vEO )
|
||||||
{
|
{
|
||||||
(void)_vEO;
|
(void)_vEO;
|
||||||
if (arret_demande)
|
if (ask_for_stop)
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue