[valgrind] [Bug 374414] unlocking mutex before calling notify_one/all on condition variable triggers an error

2017-01-04 Thread Yuval Lifshitz
https://bugs.kde.org/show_bug.cgi?id=374414 --- Comment #5 from Yuval Lifshitz <yuva...@yahoo.com> --- didn't say that wake-up is not missed. but the program would still perform correctly, since the protected variables "ready" and "processed" are either being checked

[valgrind] [Bug 374414] unlocking mutex before calling notify_one/all on condition variable triggers an error

2017-01-04 Thread Yuval Lifshitz
https://bugs.kde.org/show_bug.cgi?id=374414 --- Comment #3 from Yuval Lifshitz <yuva...@yahoo.com> --- what about the following case: we change: cv.wait(lk, []{return ready;}); to (which should be similar): while (!ready) cv.wait(lk); in this case, as long as there is only one thread w

[valgrind] [Bug 374414] New: unlocking mutex before calling notify_one/all on condition variable triggers an error

2017-01-01 Thread Yuval Lifshitz
https://bugs.kde.org/show_bug.cgi?id=374414 Bug ID: 374414 Summary: unlocking mutex before calling notify_one/all on condition variable triggers an error Product: valgrind Version: 3.10.0 Platform: Debian stable