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.
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.
精彩评论