Improve thread-safety documentation
This commit is contained in:
@@ -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 {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user