Commit Graph

2 Commits

Author SHA1 Message Date
Mariusz Kasolik 4b20c5b045 examples/cpp-multithreaded: fixed locks and timeThread terminate conditions
C++ unique_lock created through constructor with an argument creates already locked lock. The lock is unlocked with destructor.

condition_variable::wait_for returns true when await at least specified timeout false otherwise. There is no guarantee that it returns false when notified, therefore thread exit is done through extra flag 'running'.
2018-10-29 08:26:05 +01:00
Pietro Gagliardi 897674d20f Made the queuemaintest a multithreading example, because why not. 2016-05-12 12:50:05 -04:00