cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
2 Threads, one waiting for certain varia
2 Threads, one waiting for certain variable update, best way to wait?
Nov 29, 2015 at 4:42pm UTC
Gyiove
(186)
Hello everyone!
I have 2 threads.
One is main thread what is updating certain variable sometimes.
Other thread is waiting for variable to change.
What is the best way to make other thread waiting for variable change?
Right now i'm having this on my mind:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms686915(v=vs.85).aspx
Nov 29, 2015 at 4:56pm UTC
Cubbi
(4774)
Standard C++ uses std::condition_variable for this
Topic archived. No new replies allowed.