Allow ChannelProviderFactory::newInstance to accept a Configuration
Deprecate ChannelProvider::configure(), which doesn't do much and is incompatible with the idea of shared context. A lot of down-stream mess related to the confused relationship between InternalClientContextImpl and InternalClientContextImpl::ChannelProviderImpl. This is changed to compose the provider within the context and use a nested shared_ptr so that references to the provider are really references to the context. This brings the ownership semantic in line with what the API suggests, and what other providers implement.
This commit is contained in:
@@ -371,17 +371,6 @@ int main()
|
||||
{
|
||||
for (int i = 0; i < 10; i++) {
|
||||
{
|
||||
/*
|
||||
ClientContextImpl::shared_pointer context = createClientContextImpl();
|
||||
context->printInfo();
|
||||
|
||||
context->initialize();
|
||||
context->printInfo();
|
||||
|
||||
epicsThreadSleep ( SLEEP_TIME );
|
||||
|
||||
ChannelProvider::shared_pointer provider = context->getProvider();
|
||||
*/
|
||||
|
||||
ClientFactory::start();
|
||||
ChannelProvider::shared_pointer provider = getChannelProviderRegistry()->getProvider("pva");
|
||||
|
||||
Reference in New Issue
Block a user