From 0727a1ebe76b569d622546ceb18cfb9be1592dbd Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Thu, 2 May 2024 21:23:46 -0700 Subject: [PATCH] Improve thread-safety documentation --- include/VersionedMap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/VersionedMap.h b/include/VersionedMap.h index cabc71d..f9a17ab 100644 --- a/include/VersionedMap.h +++ b/include/VersionedMap.h @@ -33,7 +33,9 @@ namespace weaselab { * - It's safe to operate on two different VersionedMaps in two different * threads concurrently * - 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 {