diff options
author | Jeremy Gebben <jeremyg@lunarg.com> | 2022-11-18 10:26:48 -0700 |
---|---|---|
committer | Jeremy Gebben <jeremyg@lunarg.com> | 2022-11-18 15:03:51 -0700 |
commit | c1bcad1349ac572e5d97f848b2c32699db3a248b (patch) | |
tree | d07281620eee67f1f9bc95bd9af8523ecdba31af /docs | |
parent | 7fa92d0ea0d15244c6d5c21150cbdbe9f8a26dc3 (diff) | |
download | Vulkan-ValidationLayers-c1bcad1349ac572e5d97f848b2c32699db3a248b.tar.gz Vulkan-ValidationLayers-c1bcad1349ac572e5d97f848b2c32699db3a248b.tar.bz2 Vulkan-ValidationLayers-c1bcad1349ac572e5d97f848b2c32699db3a248b.zip |
layers: Always use std::shared_mutex now that we're c++17
Diffstat (limited to 'docs')
-rw-r--r-- | docs/fine_grained_locking.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/fine_grained_locking.md b/docs/fine_grained_locking.md index eff8b930d..a64e6c56f 100644 --- a/docs/fine_grained_locking.md +++ b/docs/fine_grained_locking.md @@ -152,7 +152,7 @@ This part of validation checks that all Vulkan objects used by a command buffer // parent nodes should form a tree with the root being a command buffer. NodeMap parent_nodes_; // Lock guarding parent_nodes_, this lock MUST NOT be used for other purposes. - mutable ReadWriteLock tree_lock_; + mutable std::shared_mutex tree_lock_; ``` @@ -617,7 +617,7 @@ For ‘normal’ images it is set during creation, but for android AHB external WriteLockGuard WriteLock() { return WriteLockGuard(lock_); } private: - mutable ReadWriteLock lock_; + mutable std::shared_mutex lock_; }; std::shared_ptr<GlobalImageLayoutRangeMap> layout_range_map; |