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:10:06 +00:00
parent e625e5dc5f
commit 28ef90cb1b
38 changed files with 617 additions and 852 deletions

View File

@@ -21,19 +21,7 @@
#include "iocinf.h"
#include "hostNameCache.h"
#if defined ( _MSC_VER )
# pragma warning ( push )
# pragma warning ( disable: 4660 )
#endif
template class tsFreeList < hostNameCache, 16 >;
#if defined ( _MSC_VER )
# pragma warning ( pop )
#endif
tsFreeList < hostNameCache, 16 > hostNameCache::freeList;
epicsMutex hostNameCache::freeListMutex;
epicsSingleton < tsFreeList < hostNameCache, 16 > > hostNameCache::pFreeList;
hostNameCache::hostNameCache ( const osiSockAddr &addr, ipAddrToAsciiEngine &engine ) :
ipAddrToAsciiAsynchronous ( addr ),
@@ -73,10 +61,10 @@ void hostNameCache::hostName ( char *pBuf, unsigned bufSize ) const
void * hostNameCache::operator new ( size_t size )
{
return hostNameCache::freeList.allocate ( size );
return hostNameCache::pFreeList->allocate ( size );
}
void hostNameCache::operator delete ( void *pCadaver, size_t size )
{
hostNameCache::freeList.release ( pCadaver, size );
hostNameCache::pFreeList->release ( pCadaver, size );
}