| Start |
|---|
| std::shared_lock A shared_lock can be used in conjunction with a unique lock to allow multiple readers and exclusive writers. |
| std::call_once, std::once_flag
Used in conjunction with s |
| Object locking for efficient access. Often you want to lock the entire object while you perform multiple operations on it. For example, if you need to examine or modify the object using iterators. Whenever you need to call multiple member functions it is generally more efficient to lock the whole object rather than individual member functions. For example: When calculating a checksum the object is locked for reading, allowing other threads that want to read from the object at the same time to do so. Clearing the object updates its internal data so it must be done using an exclusing lock. When obtaining more than one lock care should be taken to always acquire the locks in the same order for all threads. note: This is best done using std::deferred::lock (opens new window) and calling std::lock (opens new window) |
| std::condition_variable_any, std::cv_status A generalization of
|
Read Article
https://develop.horje.com/learn/1434/reference