allow creation of PV's that dont update periodically
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user