/* dcgasMain.cpp */ /* Author: Hovanes Egiyan Date: 27-Apr-2011 */ #include #include #include #include #include #include "epicsExit.h" #include "epicsThread.h" #include "iocsh.h" #include "registryFunction.h" #include #include using namespace std; class IocShellComReg; extern IocShellComReg dummyObj; // Define a global C variable for EPICS timer extern "C" { epicsTimerQueueId timerQueue; }; int main(int argc,char *argv[]) { // Create EPICS timer queue timerQueue = epicsTimerQueueAllocate( 1, epicsThreadPriorityScanHigh ) ; if(argc>=2) { iocsh(argv[1]); epicsThreadSleep(.2); } iocsh(NULL); epicsExit(0); return(0); }