开发者

boost.threads Singleton initialization

开发者 https://www.devze.com 2022-12-30 00:41 出处:网络
Is there preferred way to initialize (lazi开发者_如何学编程ly) singleton data when using multiple threads from boost.threads?

Is there preferred way to initialize (lazi开发者_如何学编程ly) singleton data when using multiple threads from boost.threads?

Thanks.


Check out the call_once free function in Boost.Thread.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号