From b1da810f5702e4bedfacd24eb37907648891b277 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?=
Date: Fri, 22 Feb 2019 12:43:25 +0100
Subject: Clarify the atomic guarantees for ets:update_counter()
The phrasing "no process can access the ETS table in the middle of the
operation" implies that the entire table is looked during
the operation, which is not true if `write_concurrency`
is enabled.
---
lib/stdlib/doc/src/ets.xml | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
(limited to 'lib/stdlib')
diff --git a/lib/stdlib/doc/src/ets.xml b/lib/stdlib/doc/src/ets.xml
index 622edc072e..b9ceaa1d69 100644
--- a/lib/stdlib/doc/src/ets.xml
+++ b/lib/stdlib/doc/src/ets.xml
@@ -2008,9 +2008,8 @@ true
This function provides an efficient way to update one or more
counters, without the trouble of having to look up an object, update
the object by incrementing an element, and insert the resulting
- object into the table again. (The update is done atomically,
- that is, no process
- can access the ETS table in the middle of the operation.)
+ object into the table again. The operation is guaranteed to be
+ atomic and isolated.
This function destructively update the object with key
Key in table Tab by adding
Incr to the element at position
--
cgit v1.2.3