$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] thread-safe initialization for singleton
From: Kraus Philipp (philipp.kraus_at_[hidden])
Date: 2010-08-21 08:58:44
Hi,
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.
Thanks
Phil