C++ architecture: multi-domain singletons?

DSP, Plugin and Host development discussion.
RELATED
PRODUCTS

Post

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~

Post


Post Reply

Return to “DSP and Plugin Development”