Commit 58207c9b authored by Vitaly Lipatov's avatar Vitaly Lipatov

int -> timeout_t replacements

parent d2337fe2
...@@ -127,8 +127,8 @@ prefix(prefix) ...@@ -127,8 +127,8 @@ prefix(prefix)
if( activateTimeout <= 0 ) if( activateTimeout <= 0 )
activateTimeout = 20000; activateTimeout = 20000;
int msec = conf->getArgInt("--" + prefix + "-timeout",it.getProp("timeout")); timeout_t msec = conf->getArgInt("--" + prefix + "-timeout",it.getProp("timeout"));
if( msec <= 0 ) if( msec == 0 )
msec = 3000; msec = 3000;
ptTimeout.setTiming(msec); ptTimeout.setTiming(msec);
......
...@@ -188,8 +188,8 @@ prefix(prefix) ...@@ -188,8 +188,8 @@ prefix(prefix)
if( activateTimeout <= 0 ) if( activateTimeout <= 0 )
activateTimeout = 20000; activateTimeout = 20000;
int msec = conf->getArgInt("--" + prefix + "-timeout",it.getProp("timeout")); timeout_t msec = conf->getArgInt("--" + prefix + "-timeout",it.getProp("timeout"));
if( msec <=0 ) if( msec == 0 )
msec = 3000; msec = 3000;
ptTimeout.setTiming(msec); ptTimeout.setTiming(msec);
......
...@@ -132,8 +132,8 @@ maxItem(0) ...@@ -132,8 +132,8 @@ maxItem(0)
if( activateTimeout <= 0 ) if( activateTimeout <= 0 )
activateTimeout = 20000; activateTimeout = 20000;
int msec = conf->getArgInt("--udp-timeout",it.getProp("timeout")); timeout_t msec = conf->getArgInt("--udp-timeout",it.getProp("timeout"));
if( msec <= 0 ) if( msec == 0 )
msec = 3000; msec = 3000;
dlog[Debug::INFO] << myname << "(init): udp-timeout=" << msec << " msec" << endl; dlog[Debug::INFO] << myname << "(init): udp-timeout=" << msec << " msec" << endl;
......
...@@ -57,8 +57,8 @@ activated(false) ...@@ -57,8 +57,8 @@ activated(false)
if( activateTimeout <= 0 ) if( activateTimeout <= 0 )
activateTimeout = 20000; activateTimeout = 20000;
int msec = conf->getArgInt("--startup-timeout"); timeout_t msec = conf->getArgInt("--startup-timeout");
if( msec <= 0 ) if( msec == 0 )
msec = 10000; msec = 10000;
ptStartUpTimeout.setTiming(msec); ptStartUpTimeout.setTiming(msec);
} }
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include "IOController_i.hh" #include "IOController_i.hh"
#include "ObjectRepository.h" #include "ObjectRepository.h"
#include "UniversalInterface.h" #include "UniversalInterface.h"
#include "PassiveTimer.h"
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------
class SViewer class SViewer
{ {
...@@ -41,7 +42,7 @@ class SViewer ...@@ -41,7 +42,7 @@ class SViewer
virtual ~SViewer(); virtual ~SViewer();
void view(); void view();
void monitor( int timeoutMS=500 ); void monitor( timeout_t timeoutMS=500 );
protected: protected:
friend class SViewer_glade; friend class SViewer_glade;
......
...@@ -111,8 +111,8 @@ bool PassiveSysTimer::wait(timeout_t timeMS) ...@@ -111,8 +111,8 @@ bool PassiveSysTimer::wait(timeout_t timeMS)
// terminate(); // terminate();
terminated = 0; terminated = 0;
int sec; timeout_t sec;
int msec; timeout_t msec;
if (timeMS == WaitUpTime) if (timeMS == WaitUpTime)
{ {
......
...@@ -57,7 +57,7 @@ void SViewer::on_SViewer_destroy() ...@@ -57,7 +57,7 @@ void SViewer::on_SViewer_destroy()
// activator->oakill(SIGKILL); // activator->oakill(SIGKILL);
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
void SViewer::monitor( int timeMS ) void SViewer::monitor( timeout_t timeMS )
{ {
for(;;) for(;;)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment