Reimplement sw::Resource with modern C++ primitives
Bug: b/133127573
Change-Id: I834939c708dcb1a075b397a919fa63c5aec652f5
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/31593
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Ben Clayton <bclayton@google.com>
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
diff --git a/src/Common/Resource.hpp b/src/Common/Resource.hpp
index 2124058..2e8c349 100644
--- a/src/Common/Resource.hpp
+++ b/src/Common/Resource.hpp
@@ -30,7 +30,7 @@
// Resource is a form of shared mutex that guards an internally allocated
// buffer. Resource has an exclusive lock mode (sw::Accessor) and lock
// count, defaulting to sw::Accessor::PUBLIC and 0, respectively.
- // Resource does treat any of the sw::Accessor enumerator lock modes
+ // Resource doesn't treat any of the sw::Accessor enumerator lock modes
// differently, all semantic meaning comes from the usage of Resource.
// You can have multiple locks in mode sw::Accessor::EXCLUSIVE.
class Resource