Quantcast
Channel: Will a calling thread see modifications to local variables after thread.join()? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by StoryTeller - Unslander Monica for Will a calling thread see...

Yes, it must return true.[thread.thread.member]void join();4Effects: Blocks until the thread represented by *this has completed. 5Synchronization: The completion of the thread represented by *this...

View Article



Will a calling thread see modifications to local variables after thread.join()?

In the simplest possible example, let's say I have a function that starts a thread, which in turn sets the value of a local variable to true. We join the thread, then leave the function. bool func() {...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images

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