Boost logo

Boost Users :

Subject: Re: [Boost-users] [random] Singleton engine
From: Mika Heiskanen (mika.heiskanen_at_[hidden])
Date: 2009-07-29 10:43:14


jp wrote:
> On Jul 28, 8:14 pm, "Diederick C. Niehorster" <dcni..._at_[hidden]>
> The problem I have with my implementation is that what I really want
> is a thread-local singleton. If I have to make the access threadsafe,
> then I may be better off recreating it every time. Any ideas on how
> best to do this? Could it be done with the boost::serialization
> singleton? My guess is that it may be possible by using the loki
> creation policy, but I have no idea how to go about doing it.

See for example http://www.boostcookbook.com/Recipe:/1235044

--> Mika Heiskanen


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net