Login / Register 0 items | $0.00 New @ KVR
stratum
KVRAF
 
1852 posts since 29 May, 2012

Postby stratum; Mon Apr 23, 2018 8:10 am Re: C++ architecture: multi-domain singletons?

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
 
6834 posts since 16 Feb, 2005

Postby camsr; Mon Apr 30, 2018 6:12 pm Re: C++ architecture: multi-domain singletons?

Image
Previous

Moderator: Moderators (Main)

Return to DSP and Plug-in Development