Anycorn
Anycorn

Reputation: 51505

boost.threads Singleton initialization

Is there preferred way to initialize (lazily) singleton data when using multiple threads from boost.threads?

Thanks.

Upvotes: 1

Views: 464

Answers (1)

Emile Cormier
Emile Cormier

Reputation: 29219

Check out the call_once free function in Boost.Thread.

Upvotes: 4

Related Questions