From 51286f5d4fecb9758fa2b88da042dc48a9a6d83c Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 21 Mar 2002 23:47:37 +0000 Subject: [PATCH] new guard interface, removed templ instantiation --- src/cas/generic/caServerI.cc | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/src/cas/generic/caServerI.cc b/src/cas/generic/caServerI.cc index 37409d8e6..ccb2c8cd2 100644 --- a/src/cas/generic/caServerI.cc +++ b/src/cas/generic/caServerI.cc @@ -37,21 +37,6 @@ #include "server.h" #include "casCtxIL.h" // casCtx in line func -#if defined ( _MSC_VER ) -# pragma warning ( push ) -# pragma warning ( disable: 4660 ) -#endif - -template class tsSLNode < casPVI >; -template class tsSLNode < casRes >; -template class resTable < casRes, chronIntId >; -template class resTable < casEventMaskEntry, stringId >; -template class chronIntIdResTable < casRes >; - -#if defined ( _MSC_VER ) -# pragma warning ( pop ) -#endif - // // the maximum beacon period if EPICS_CA_BEACON_PERIOD isnt available // @@ -117,7 +102,7 @@ caServerI::caServerI (caServer &tool) : */ caServerI::~caServerI() { - epicsAutoMutex locker ( this->mutex ); + epicsGuard < epicsMutex > locker ( this->mutex ); // // delete all clients @@ -144,7 +129,7 @@ caServerI::~caServerI() // void caServerI::installClient(casStrmClient *pClient) { - epicsAutoMutex locker ( this->mutex ); + epicsGuard < epicsMutex > locker ( this->mutex ); this->clientList.add(*pClient); } @@ -153,7 +138,7 @@ void caServerI::installClient(casStrmClient *pClient) // void caServerI::removeClient (casStrmClient *pClient) { - epicsAutoMutex locker ( this->mutex ); + epicsGuard < epicsMutex > locker ( this->mutex ); this->clientList.remove (*pClient); } @@ -228,7 +213,7 @@ caStatus caServerI::attachInterface (const caNetAddr &addr, bool autoBeaconAddr, } { - epicsAutoMutex locker ( this->mutex ); + epicsGuard < epicsMutex > locker ( this->mutex ); this->intfList.add (*pIntf); } @@ -249,7 +234,7 @@ void caServerI::sendBeacon() // addresses. // { - epicsAutoMutex locker ( this->mutex ); + epicsGuard < epicsMutex > locker ( this->mutex ); tsDLIterBD iter = this->intfList.firstIter (); while ( iter.valid () ) { iter->sendBeacon (); @@ -284,7 +269,7 @@ void caServerI::show (unsigned level) const this->mutex.show(level); { - epicsAutoMutex locker ( this->mutex ); + epicsGuard < epicsMutex > locker ( this->mutex ); tsDLIterConstBD iterCl = this->clientList.firstIter (); while ( iterCl.valid () ) { iterCl->show (level); @@ -324,7 +309,7 @@ void caServerI::show (unsigned level) const printf( "The server's integer resource id conversion table:\n"); { - epicsAutoMutex locker ( this->mutex ); + epicsGuard < epicsMutex > locker ( this->mutex ); this->chronIntIdResTable::show(level); } }