Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1308

Comment by HolyBlackCat on Is synchronization relationship necessary to avoid the duplicate invocation of a function?

$
0
0
No memory_order would prevent this code from calling need_close() more than once. Also I suggest replacing rand() with something else (something thread-safe), if your question is not specifically about it.

Viewing all articles
Browse latest Browse all 1308

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>