JOIN ME
—————
YouTube 🎬 [ Ссылка ]
Patreon 🚀 [ Ссылка ]
COMPLETE PLAYLIST
————————————
C++ Tutorial For Beginners: [ Ссылка ]
STL (Standard Template Library): [ Ссылка ]
ThreadIng In C++: [ Ссылка ]
Data Structures: [ Ссылка ]
Algorithms: [ Ссылка ]
Design Patterns: [ Ссылка ]
Smart Pointers: [ Ссылка ]
C++14: [ Ссылка ]
C++17: [ Ссылка ]
C++ All Type Casts: [ Ссылка ]
INTERVIEW PLAYLIST
————————————
C++ Interview Q&A: [ Ссылка ]
C++ Interview Q&A For Experienced: [ Ссылка ]
Linked List Interview Questions: [ Ссылка ]
BST Interview Questions: [ Ссылка ]
Array Interview Questions: [ Ссылка ]
String Interview Questions: [ Ссылка ]
Bit Manipulation Questions: [ Ссылка ]
Binary Tree Interview Question: [ Ссылка ]
Sorting Algorithms: [ Ссылка ]
C++ MCQ: [ Ссылка ]
C MCQ: [ Ссылка ]
C Interview Questions: [ Ссылка ]
QUICK SHORT VIDEOS
————————————-
C++ Short : [ Ссылка ]
C Short : [ Ссылка ]-
In this video we will learn how to use unique_lock In C++ programming language.
Few important points to remember about the unique_lock is as follows:
1. The class unique_lock is a mutex ownership wrapper.
2. It Allows:
a. Can Have Different Locking Strategies
b. time-constrained attempts at locking (try_lock_for, try_lock_until)
c. recursive locking
d. transfer of lock ownership (move not copy)
e. condition variables. (See this in coming videos)
Locking Strategies
TYPE EFFECTS(S)
1. defer_lock do not acquire ownership of the mutex.
2. try_to_lock try to acquire ownership of the mutex without blocking.
3. adopt_lock assume the calling thread already has ownership of the mutex.
#threading #cpp #programming #tutorial #computerscience #softwareengineering
![](https://i.ytimg.com/vi/NsqqWDQHldo/maxresdefault.jpg)