From: Guilherme Maciel Ferreira Date: Fri, 8 Apr 2011 11:35:29 +0000 (+0200) Subject: More meaningful name for timer objects. X-Git-Tag: v1.0~92 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=283eac85b0d3d05d87f94ad8c557ab04f49a222f;p=pingcheck More meaningful name for timer objects. --- diff --git a/src/ping/pingscheduler.cpp b/src/ping/pingscheduler.cpp index 9f1a32a..ce3bed1 100644 --- a/src/ping/pingscheduler.cpp +++ b/src/ping/pingscheduler.cpp @@ -28,7 +28,7 @@ PingScheduler::PingScheduler( ) : IoService( io_serv ), LocalNetworkInterfaceName( ping_interface ), - Timer( io_serv ), + NextPingTimer( io_serv ), TimeSentLastPing( microsec_clock::universal_time() ), PingIntervalInSec( ping_interval_in_sec ), IpList( ping_address ), @@ -99,8 +99,8 @@ void PingScheduler::schedule_next_ping() { BOOST_ASSERT( 0 < PingIntervalInSec ); - (void) Timer.expires_from_now( seconds( PingIntervalInSec ) ); - Timer.async_wait( bind( &PingScheduler::handle_next_ping, this ) ); + (void) NextPingTimer.expires_from_now( seconds( PingIntervalInSec ) ); + NextPingTimer.async_wait( bind( &PingScheduler::handle_next_ping, this ) ); } void PingScheduler::handle_next_ping() diff --git a/src/ping/pingscheduler.h b/src/ping/pingscheduler.h index 0ace594..701bb9e 100644 --- a/src/ping/pingscheduler.h +++ b/src/ping/pingscheduler.h @@ -48,7 +48,7 @@ private: private: boost::asio::io_service &IoService; std::string LocalNetworkInterfaceName; - boost::asio::deadline_timer Timer; + boost::asio::deadline_timer NextPingTimer; boost::posix_time::ptime TimeSentLastPing; PingInterval PingIntervalInSec; DnsResolver IpList;