↧
Answer by Sam Varshavchik for Are memory fences required here?
30.3.1.2 thread constructorstemplate <class F, class ...Args> explicit thread(F&& f, Args&&... args);Synchronization: The completion of the invocation of the constructor...
View ArticleAre memory fences required here?
Consider this code (extracted from Simple-Web-Server, but knowledge of the library shouldn't be necessary to answer this question):HttpServer server;thread server_thread;server.config.port =...
View Article