Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2005-05-06 16:32:01


"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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk