|
Boost Users : |
Subject: Re: [Boost-users] thread-safe initialization for singleton
From: Mika Heiskanen (mika.heiskanen_at_[hidden])
Date: 2010-08-21 11:59:16
On Sat, 2010-08-21 at 15:58 +0300, Kraus Philipp wrote:
> I have written a class with static methods and properties. Now the
> class must be used in a multithreaded environment, so I get some race
> conditions error.
> I use boost::thread for implementating the threads. I have found
> boost_once but I don't know how to use it, so my class properties are
> initialized once.
http://www.google.com/search?q=boost_once+singleton
--> 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