开发者

boost.threads Singleton initialization

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜