use singleton for epics timer queue manager

This commit is contained in:
Jeff Hill
2002-03-22 21:18:45 +00:00
parent e91791d01c
commit cf3000d8df
3 changed files with 6 additions and 5 deletions

View File

@@ -31,13 +31,13 @@
#define epicsExportSharedSymbols
#include "timerPrivate.h"
timerQueueActiveMgr queueMgr;
epicsSingleton < timerQueueActiveMgr > pTimerQueueMgrEPICS;
epicsTimerQueueActive::~epicsTimerQueueActive () {}
epicsTimerQueueActive &epicsTimerQueueActive::allocate ( bool okToShare, unsigned threadPriority )
{
return queueMgr.allocate ( okToShare, threadPriority );
return pTimerQueueMgrEPICS->allocate ( okToShare, threadPriority );
}
timerQueueActive::timerQueueActive ( bool okToShareIn, unsigned priority ) :