We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd71df4 commit 2cfcd54Copy full SHA for 2cfcd54
1 file changed
README.md
@@ -214,11 +214,11 @@ var value = dictionary.get("key1");
214
215
// Thread-safe dictionary with stamped lock
216
var lockableDictionary = DictionaryFactory.stampedLockBasedRefToRefDictionary();
217
-var stamp = lockableDictionary.readLock();
+var stamp = lockableDictionary.writeLock();
218
try {
219
lockableDictionary.put("key", "value");
220
} finally {
221
- lockableDictionary.readUnlock(stamp)
+ lockableDictionary.writeUnlock(stamp);
222
}
223
224
// Primitive key dictionaries (no boxing overhead)
0 commit comments