From 954945cd542ec1e428e7762d8f384ed8818ea032 Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Wed, 22 Feb 2012 23:56:05 -0200 Subject: [PATCH] Created a PingItem type as an alias to the smart pointer. --- src/host/pinger.h | 7 +++++++ src/host/pingscheduler.h | 2 +- 2 files changed, 8 insertions(+), 1 deletions(-) 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; -- 1.7.1