Skip to Content
Computer Vision with OpenCV 3 and Qt5
book

Computer Vision with OpenCV 3 and Qt5

by Amin Ahmadi Tazehkandi
January 2018
Intermediate to advanced content levelIntermediate to advanced
486 pages
11h 28m
English
Packt Publishing
Content preview from Computer Vision with OpenCV 3 and Qt5

Wait conditions

Another common issue in multithreaded programming can occur because a certain thread must wait for some condition other than the thread being executed by the operating system. In such cases, if quite naturally, a mutex or a read-write lock is used by the thread, it can block all other threads because it is simply the thread's turn to run and it is waiting for some specific condition. One would expect that the thread that needs to wait for a condition, goes to sleep after it releases the mutex or read-write lock so that other threads continue to operate, and when the condition is met, it is woken up by another thread.

In the Qt framework, there is a class called QWaitCondition, which is dedicated to handling such issues we ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering OpenCV 4 - Third Edition

Mastering OpenCV 4 - Third Edition

Roy Shilkrot, David Millán Escrivá
Hands-On Computer Vision with TensorFlow 2

Hands-On Computer Vision with TensorFlow 2

Benjamin Planche, Eliot Andres
OpenCV 4 with Python Blueprints - Second Edition

OpenCV 4 with Python Blueprints - Second Edition

Dr. Menua Gevorgyan, Michael Beyeler (USD), Arsen Mamikonyan, Michael Beyeler

Publisher Resources

ISBN: 9781788472395Supplemental Content