changed loc of free list lock

This commit is contained in:
Jeff Hill
2001-03-07 16:27:09 +00:00
parent 922dece548
commit 00ec5cbdeb
7 changed files with 18 additions and 20 deletions

View File

@@ -19,6 +19,7 @@
#include "oldAccess.h"
tsFreeList < class oldChannelNotify, 1024 > oldChannelNotify::freeList;
epicsMutex oldChannelNotify::freeListMutex;
extern "C" void cacNoopConnHandler ( struct connection_handler_args )
{
@@ -115,10 +116,12 @@ class oldChannelNotify * oldChannelNotify::pOldChannelNotify ()
void * oldChannelNotify::operator new ( size_t size )
{
epicsAutoMutex locker ( oldChannelNotify::freeListMutex );
return oldChannelNotify::freeList.allocate ( size );
}
void oldChannelNotify::operator delete ( void *pCadaver, size_t size )
{
epicsAutoMutex locker ( oldChannelNotify::freeListMutex );
oldChannelNotify::freeList.release ( pCadaver, size );
}