separate ChannelProviderRegistry for client/server

This commit is contained in:
Michael Davidsaver
2017-06-21 14:41:24 +02:00
parent 2e7d28b87d
commit 35d2c610bf
14 changed files with 161 additions and 112 deletions

View File

@@ -178,7 +178,7 @@ static
void ca_factory_cleanup(void*)
{
try {
getChannelProviderRegistry()->remove("ca");
ChannelProviderRegistry::clients()->remove("ca");
} catch(std::exception& e) {
LOG(logLevelWarn, "Error when unregister \"ca\" factory");
}
@@ -189,7 +189,7 @@ void CAClientFactory::start()
epicsSignalInstallSigAlarmIgnore();
epicsSignalInstallSigPipeIgnore();
if(getChannelProviderRegistry()->add<CAChannelProvider>("ca", false))
if(ChannelProviderRegistry::clients()->add<CAChannelProvider>("ca", false))
epicsAtExit(&ca_factory_cleanup, NULL);
}