void PVAServerCTX::start() { if(ctx.get()) { cout<< "PVAServer already started" << endl; return; } ctx = startPVAServer(PVACCESS_ALL_PROVIDERS,0,true,true); }
void PVAServerCTX::stop() { if(!ctx.get()) { cout<< "PVAServer already stopped" << endl; return; } ctx->destroy(); ctx.reset(); epicsThreadSleep(1.0); }