Improve thread-safety documentation

This commit is contained in:
2024-05-02 21:23:46 -07:00
parent eba1c2ce2a
commit 0727a1ebe7

View File

@@ -33,7 +33,9 @@ namespace weaselab {
* - It's safe to operate on two different VersionedMaps in two different * - It's safe to operate on two different VersionedMaps in two different
* threads concurrently * threads concurrently
* - It's safe to have multiple threads operating on the same VersionedMap * - It's safe to have multiple threads operating on the same VersionedMap
* concurrently if and only if all threads only call const methods. * concurrently if all threads only call const methods.
* - Methods that make stronger guarantees about the safety of calling
* concurrently with non-const methods are documented as such.
*/ */
struct VersionedMap { struct VersionedMap {