Quantcast
Channel: Will a calling thread see modifications to local variables after thread.join()? - Stack Overflow
Browsing latest articles
Browse All 2 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 latest articles
Browse All 2 View Live




Latest Images