From: Guilherme Maciel Ferreira Date: Thu, 23 Feb 2012 01:56:05 +0000 (-0200) Subject: Created a PingItem type as an alias to the smart pointer. X-Git-Tag: v1.5~1^2~38 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=954945cd542ec1e428e7762d8f384ed8818ea032;p=pingcheck Created a PingItem type as an alias to the smart pointer. --- diff --git a/src/host/pinger.h b/src/host/pinger.h index c0fa9f9..b2eed2d 100644 --- a/src/host/pinger.h +++ b/src/host/pinger.h @@ -26,6 +26,7 @@ #include #include +#include //----------------------------------------------------------------------------- // Pinger @@ -53,4 +54,10 @@ private: }; +//----------------------------------------------------------------------------- +// PingerItem +//----------------------------------------------------------------------------- + +typedef boost::shared_ptr PingerItem; + #endif // PINGER_H diff --git a/src/host/pingscheduler.h b/src/host/pingscheduler.h index 0ff5b1b..161866e 100644 --- a/src/host/pingscheduler.h +++ b/src/host/pingscheduler.h @@ -109,7 +109,7 @@ private: /// Object responsible to evaluate the status of the host HostStatus HostAnalyzer; /// Internal boost pinger object - boost::shared_ptr Ping; + PingerItem Ping; /// Thread object boost::thread Thread;