projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adds writer test case for RCU
[folly.git]
/
folly
/
docs
/
AtomicHashMap.md
diff --git
a/folly/docs/AtomicHashMap.md
b/folly/docs/AtomicHashMap.md
index 978df241d636b89af8a5bab9473048e41c7656fa..7522dcdf67456ae2660db1da24c573eb42217283 100644
(file)
--- a/
folly/docs/AtomicHashMap.md
+++ b/
folly/docs/AtomicHashMap.md
@@
-74,7
+74,7
@@
string.
void increment(int64_t obj_id) {
auto ret = ahm.insert(make_pair(obj_id, 1));
- if (!ret.
first
) {
+ if (!ret.
second
) {
// obj_id already exists, increment
NoBarrier_AtomicIncrement(&ret.first->second, 1);
}