Boost logo

Boost :

From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2008-01-18 14:26:34


Peter Dimov wrote:
> What is the reason to prefer the current instance/lease formulation instead
> of
>
> typedef ... instance_type;
> instance_type instance(); // automatically serves as a lease
>
> ?

As we can't expose the instance when automatic locking is done, it is
supposed to provide a means to not have to access the instance directly.

> (Also, why mutexed_singleton? Mutexed is not a word; synchronized_singleton
> maybe?)

>
> Apologies if these have already been answered.

No, they haven't. And there were no complaints about the no-word either,
so far :-).

Regards,
Tobias


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