
6 May
2005
6 May
'05
9:32 p.m.
"Jason Hise" wrote:
Actually, something like this already exists.
class MySingleton : public singleton_ex < MySingleton, lifo_lifetime_ex < default_creation, create_using_std_allocator_ex < false, // throw if memory can't be allocated some_shared_memory_allocator < MySingleton > > >
{ };
You would have to provide some_shared_memory_allocator, which would take the form of a standard allocator policy.
The problem is about inability of Windows to "merge" static data from different DLLs into one place. This results in more than one lifetime_priority queue in single application, frex. /Pavel