orocos-toolchain / ocl

Orocos Component Library
Other
16 stars 33 forks source link

deployment: do not release the ComponentLoader during destruction of the DeploymentComponent #45

Closed meyerj closed 8 years ago

meyerj commented 8 years ago

The ComponentLoader::Release() command was added in b91a085d798d153bf6fad2d0d647495d7d06e664, but the class' definition and implementation has been moved from OCL to RTT in 1a19d57ca4d9b0b137150cca5d3ff10d327e8c32.

There could be multiple DeploymentComponent instances in a single process, so destruction of one of them should not cleanup the global ComponentLoader. The RTT::os::StartStopManager already takes care of this. See https://github.com/orocos-toolchain/rtt/blob/master/rtt/deployment/ComponentLoader.cpp#L275.