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

Read-write locks

As powerful as mutexes are, they lack certain capabilities, such as different types of locks. So, even though they are quite useful for access serialization, they cannot be effectively used for cases such as read-write serialization, which basically rely on two different types of locks: read and write. Let's again break this down with an example. Let's assume we want various threads to be able to read from an object (such as a variable, class instance, file, and so on) at the same time, but we want to make sure only one thread can modify (or write to) that object at any given time. For such cases, we can use the Read-Write Lock mechanisms, which are basically enhanced mutexes. The Qt framework provides the QReadWriteLock ...

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