moved template instances to a separate file

This commit is contained in:
Jeff Hill
2002-04-25 18:23:09 +00:00
parent 420ad02d89
commit 2e11e7aacd
3 changed files with 7 additions and 38 deletions

View File

@@ -14,6 +14,10 @@
* 505 665 1831
*/
#ifdef _MSC_VER
# pragma warning(disable:4355)
#endif
#define epicsAssertAuthor "Jeff Hill johill@lanl.gov"
#define epicsExportSharedSymbols
@@ -21,18 +25,6 @@
#include "oldAccess.h"
#include "cac.h"
#ifdef _MSC_VER
# pragma warning ( push )
# pragma warning ( disable:4660 )
#endif
template class tsFreeList < oldChannelNotify, 1024 >;
template class epicsSingleton < tsFreeList < oldChannelNotify, 1024 > >;
#ifdef _MSC_VER
# pragma warning ( pop )
#endif
epicsSingleton < tsFreeList < struct oldChannelNotify, 1024 > > oldChannelNotify::pFreeList;
extern "C" void cacNoopConnHandler ( struct connection_handler_args )
@@ -45,9 +37,10 @@ extern "C" void cacNoopAccesRightsHandler ( struct access_rights_handler_args )
oldChannelNotify::oldChannelNotify ( oldCAC & cacIn, const char *pName,
caCh * pConnCallBackIn, void * pPrivateIn, capri priority ) :
io ( cacIn.createChannel ( pName, *this, priority ) ), cacCtx ( cacIn ),
cacCtx ( cacIn ),
pConnCallBack ( pConnCallBackIn ? pConnCallBackIn : cacNoopConnHandler ),
pPrivate ( pPrivateIn ), pAccessRightsFunc ( cacNoopAccesRightsHandler )
pPrivate ( pPrivateIn ), pAccessRightsFunc ( cacNoopAccesRightsHandler ),
io ( cacIn.createChannel ( pName, *this, priority ) )
{
}