C++ architecture: multi-domain singletons?

DSP, Plug-in and Host development discussion.
stratum
KVRAF
1842 posts since 29 May, 2012

Post Mon Apr 23, 2018 8:10 am

Miles1981 wrote: It may, for instance if one of your singletons has a reference to another library that will be unloaded before the singleton's, you will want to clear the singleton first.
In my case, some of the singletons that were cleaned up were used by the shutdown routines of some other modules that were being executed later, that's why an explicit sequence was necessary. One may argue that the way I package those classes into modules are wrong because it allows the arbitrary lazy initialization sequence determine the shutdown sequence and that's why I have that shutdown sequence problem, and I'd say, yes that's quite correct but it's not always practical to look for the cleanest solution.
~stratum~

camsr
KVRAF
6858 posts since 17 Feb, 2005

Re: C++ architecture: multi-domain singletons?

Post Mon Apr 30, 2018 6:12 pm

Image

Return to “DSP and Plug-in Development”