Reputation: 51505
Is there preferred way to initialize (lazily) singleton data when using multiple threads from boost.threads?
Thanks.
Upvotes: 1
Views: 464
Reputation: 29219
Check out the call_once free function in Boost.Thread.
Upvotes: 4