removed inline from bhe constructor

This commit is contained in:
Jeff Hill
2002-03-25 17:34:29 +00:00
parent 9e19d72cb1
commit da9120931c
2 changed files with 33 additions and 34 deletions

View File

@@ -10,6 +10,10 @@
* Author: Jeff Hill
*/
#include <limits.h>
#include <float.h>
#define epicsAssertAuthor "Jeff Hill johill@lanl.gov"
#define epicsExportSharedSymbols
@@ -29,6 +33,33 @@ void bhe::operator delete ( void *pCadaver, size_t size )
bhe::pFreeList->release ( pCadaver, size );
}
/*
* set average to -1.0 so that when the next beacon
* occurs we can distinguish between:
* o new server
* o existing server's beacon we are seeing
* for the first time shortly after program
* start up
*
* if creating this in response to a search reply
* and not in response to a beacon then
* we set the beacon time stamp to
* zero (so we can correctly compute the period
* between the 1st and 2nd beacons)
*/
bhe::bhe ( const epicsTime & initialTimeStamp, const inetAddrID & addr ) :
inetAddrID ( addr ), timeStamp ( initialTimeStamp ), averagePeriod ( - DBL_MAX ),
lastBeaconNumber ( UINT_MAX )
{
# ifdef DEBUG
{
char name[64];
addr.name ( name, sizeof ( name ) );
::printf ( "created beacon entry for %s\n", name );
}
# endif
}
bhe::~bhe ()
{
}

View File

@@ -14,10 +14,6 @@
#ifndef bheh
#define bheh
#include <limits.h>
#include <float.h>
#ifdef epicsExportSharedSymbols
# define bhehEpicsExportSharedSymbols
# undef epicsExportSharedSymbols
@@ -25,7 +21,6 @@
#include "shareLib.h"
#include "tsSLList.h"
#include "tsDLList.h"
#include "tsFreeList.h"
#include "epicsSingleton.h"
@@ -35,10 +30,10 @@
# define epicsExportSharedSymbols
#endif
#include "shareLib.h"
#include "inetAddrID.h"
#include "shareLib.h"
class tcpiiu;
class bhe : public tsSLNode < bhe >, public inetAddrID {
@@ -67,33 +62,6 @@ private:
bhe & operator = ( const bhe & );
};
/*
* set average to -1.0 so that when the next beacon
* occurs we can distinguish between:
* o new server
* o existing server's beacon we are seeing
* for the first time shortly after program
* start up
*
* if creating this in response to a search reply
* and not in response to a beacon then
* we set the beacon time stamp to
* zero (so we can correctly compute the period
* between the 1st and 2nd beacons)
*/
inline bhe::bhe ( const epicsTime & initialTimeStamp, const inetAddrID & addr ) :
inetAddrID ( addr ), timeStamp ( initialTimeStamp ), averagePeriod ( - DBL_MAX ),
lastBeaconNumber ( UINT_MAX )
{
# ifdef DEBUG
{
char name[64];
addr.name ( name, sizeof ( name ) );
::printf ( "created beacon entry for %s\n", name );
}
# endif
}
#endif // ifdef bheh