|
From: <bo...@us...> - 2008-10-29 07:55:20
|
Revision: 355
http://gearbox.svn.sourceforge.net/gearbox/?rev=355&view=rev
Author: borax00
Date: 2008-10-29 07:00:58 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
allowed heartbeat interval in constructor
Modified Paths:
--------------
gearbox/trunk/src/gbxutilacfr/substatus.h
Modified: gearbox/trunk/src/gbxutilacfr/substatus.h
===================================================================
--- gearbox/trunk/src/gbxutilacfr/substatus.h 2008-10-29 07:00:45 UTC (rev 354)
+++ gearbox/trunk/src/gbxutilacfr/substatus.h 2008-10-29 07:00:58 UTC (rev 355)
@@ -29,12 +29,12 @@
public:
//! Sets a reference to the system Status and this subsystem's name.
- //! Adds this subsystem to the system with default (infinite) maximum heartbeat interval.
- SubStatus( Status& status, const std::string& subsystem ) :
+ //! Adds this subsystem to the system.
+ SubStatus( Status& status, const std::string& subsystem, double maxHeartbeatIntervalSec=-1.0 ) :
status_(status),
subsysName_(subsystem)
{
- status_.addSubsystem( subsysName_ );
+ status_.addSubsystem( subsysName_, maxHeartbeatIntervalSec );
};
//! Removes this subsystem from the system.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|