From cdd45ec7568413c1c08150d68d497906c8cf60aa Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Mon, 13 May 2002 21:58:15 +0000 Subject: [PATCH] added large array PV --- src/cas/example/simple/exPV.cc | 4 +--- src/cas/example/simple/exServer.cc | 11 +++++++---- src/cas/example/simple/exServer.h | 1 + 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/cas/example/simple/exPV.cc b/src/cas/example/simple/exPV.cc index ddd91a887..8e116ee63 100644 --- a/src/cas/example/simple/exPV.cc +++ b/src/cas/example/simple/exPV.cc @@ -48,9 +48,7 @@ exPV::exPV ( pvInfo &setup, bool preCreateFlag, bool scanOnIn ) : // exPV::~exPV() { - if ( this->getCAS() ) { - this->timer.destroy (); - } + this->timer.destroy (); this->info.unlinkPV(); } diff --git a/src/cas/example/simple/exServer.cc b/src/cas/example/simple/exServer.cc index 7fdae5f29..cde3c9342 100644 --- a/src/cas/example/simple/exServer.cc +++ b/src/cas/example/simple/exServer.cc @@ -27,6 +27,7 @@ const unsigned exServer::pvListNElem = NELEMENTS (exServer::pvList); // pvInfo exServer::bill (-1.0, "bill", 10.0f, -10.0f, excasIoSync, 1u); pvInfo exServer::billy (-1.0, "billy", 10.0f, -10.0f, excasIoAsync, 1u); +pvInfo exServer::bloaty (-1.0, "bloaty", 10.0f, -10.0f, excasIoSync, 100000); // // exServer::exServer() @@ -77,10 +78,12 @@ exServer::exServer ( const char * const pvPrefix, // Install create on-the-fly PVs // into the PV name hash table // - sprintf(pvAlias, pNameFmtStr, pvPrefix, bill.getName()); - this->installAliasName(bill, pvAlias); - sprintf(pvAlias, pNameFmtStr, pvPrefix, billy.getName()); - this->installAliasName(billy, pvAlias); + sprintf ( pvAlias, pNameFmtStr, pvPrefix, bill.getName() ); + this->installAliasName ( bill, pvAlias ); + sprintf ( pvAlias, pNameFmtStr, pvPrefix, billy.getName() ); + this->installAliasName ( billy, pvAlias ); + sprintf ( pvAlias, pNameFmtStr, pvPrefix, bloaty.getName() ); + this->installAliasName ( bloaty, pvAlias ); } // diff --git a/src/cas/example/simple/exServer.h b/src/cas/example/simple/exServer.h index b6f5ff933..ad8d1b94e 100644 --- a/src/cas/example/simple/exServer.h +++ b/src/cas/example/simple/exServer.h @@ -331,6 +331,7 @@ private: // static pvInfo bill; static pvInfo billy; + static pvInfo bloaty; }; //