@@ -44,7 +44,7 @@ template <class ElemTy> struct ConcurrentList {
44
44
}
45
45
46
46
// / Remove all of the links in the chain. This method leaves
47
- // / the list at a usable state and new links can be added.
47
+ // / the list at an usable state and new links can be added.
48
48
// / Notice that this operation is non-concurrent because
49
49
// / we have no way of ensuring that no one is currently
50
50
// / traversing the list.
@@ -145,7 +145,7 @@ template <class KeyTy, class ValueTy> struct ConcurrentMapNode {
145
145
// / The method findOrAllocateNode searches the binary tree in search of the
146
146
// / exact Key value. If it finds an edge that points to NULL that should
147
147
// / contain the value then it tries to compare and swap the new node into
148
- // / place. If it looses the race to a different thread it de-allocates
148
+ // / place. If it loses the race to a different thread it de-allocates
149
149
// / the node and starts the search again since the new node should
150
150
// / be placed (or found) on the new link. See findOrAllocateNode for more
151
151
// / details.
@@ -164,7 +164,7 @@ template <class KeyTy, class ValueTy> class ConcurrentMap {
164
164
// / accelerating the search of the same value again and again.
165
165
std::atomic<NodeTy *> LastSearch;
166
166
167
- // / Search a for a node with key value \p. If the node does not exist then
167
+ // / Search for a node with key value \p. If the node does not exist then
168
168
// / allocate a new bucket and add it to the tree.
169
169
ConcurrentList<ValueTy> &findOrAllocateNode (KeyTy Key) {
170
170
// Try looking at the last node we searched.
0 commit comments