allow creation of PV's that dont update periodically

This commit is contained in:
Jeff Hill
2001-01-18 19:57:14 +00:00
parent dbe9c8e75f
commit d8d0e6b86d
2 changed files with 4 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ exPV::exPV (pvInfo &setup, bool preCreateFlag, bool scanOnIn) :
// (we will speed this up to the normal rate when
// someone is watching the PV)
//
if (this->scanOn) {
if ( this->scanOn && this->info.getScanPeriod () > 0.0 ) {
this->pScanTimer =
new exScanTimer (this->getScanPeriod(), *this);
}
@@ -169,7 +169,7 @@ caStatus exPV::interestRegister()
if (this->pScanTimer) {
this->pScanTimer->reschedule(this->getScanPeriod());
}
else {
else if ( this->getScanPeriod () > 0.0 ) {
this->pScanTimer = new exScanTimer
(this->getScanPeriod(), *this);
if (!this->pScanTimer) {

View File

@@ -41,8 +41,8 @@ const unsigned exServer::pvListNElem = NELEMENTS (exServer::pvList);
//
// static on-the-fly PVs
//
pvInfo exServer::bill (2.0, "bill", 10.0f, -10.0f, excasIoSync, 1u);
pvInfo exServer::billy (2.0, "billy", 10.0f, -10.0f, excasIoAsync, 1u);
pvInfo exServer::bill (-1.0, "bill", 10.0f, -10.0f, excasIoSync, 1u);
pvInfo exServer::billy (-1.0, "billy", 10.0f, -10.0f, excasIoAsync, 1u);
//
// exServer::exServer()