epicsAutoMutex has a new name, fixed free lists, and use c++ thread class,

and fixed dll symbol exports
This commit is contained in:
Jeff Hill
2002-03-21 23:39:44 +00:00
parent 20ae242c24
commit d7b6a509de
4 changed files with 21 additions and 61 deletions

View File

@@ -30,19 +30,7 @@
#include "dbChannelIOIL.h"
#include "db_access_routines.h"
#if defined ( _MSC_VER )
# pragma warning ( push )
# pragma warning ( disable: 4660 )
#endif
template class tsFreeList < dbSubscriptionIO >;
#if defined ( _MSC_VER )
# pragma warning ( pop )
#endif
tsFreeList < dbSubscriptionIO > dbSubscriptionIO::freeList;
epicsMutex dbSubscriptionIO::freeListMutex;
dbSubscriptionIO::dbSubscriptionIO ( dbServiceIO &serviceIO, dbChannelIO &chanIO,
dbAddr &addr, cacStateNotify &notifyIn,
@@ -91,13 +79,11 @@ void dbSubscriptionIO::channelDeleteException ()
void * dbSubscriptionIO::operator new ( size_t size )
{
epicsAutoMutex locker ( dbSubscriptionIO::freeListMutex );
return dbSubscriptionIO::freeList.allocate ( size );
}
void dbSubscriptionIO::operator delete ( void *pCadaver, size_t size )
{
epicsAutoMutex locker ( dbSubscriptionIO::freeListMutex );
dbSubscriptionIO::freeList.release ( pCadaver, size );
}