Skip to content

Commit 6825b7a

Browse files
committed
Version 2.2.1
1 parent 817c556 commit 6825b7a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Hashmap.hpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ namespace LouiEriksson {
119119
*/
120120
void Resize(const size_t& _newSize) {
121121

122-
const std::lock_guard<std::recursive_mutex> lock(s_Lock);
123-
124122
std::vector<std::vector<KeyValuePair>> shallow_cpy(m_Buckets);
125123

126124
try {
@@ -134,7 +132,7 @@ namespace LouiEriksson {
134132

135133
std::exception_ptr e_ptr = nullptr;
136134

137-
Assign(std::move(kvp.first), std::move(kvp.second), nullptr);
135+
Assign(std::move(kvp.first), std::move(kvp.second), e_ptr);
138136

139137
if (e_ptr != nullptr) {
140138
std::rethrow_exception(e_ptr);
@@ -993,9 +991,6 @@ namespace LouiEriksson {
993991
[[deprecated("This function does not guarantee exception-safety and will explicitly throw if no entry exists. Consider using Get() if exception-safe access is required.\nSuppress this warning by defining \"HASHMAP_SUPPRESS_UNSAFE_WARNING\".")]]
994992
#endif
995993
const Tv& operator[](const Tk& _key) const {
996-
997-
const std::lock_guard<std::recursive_mutex> lock(s_Lock);
998-
999994
return Return(_key);
1000995
}
1001996

0 commit comments

Comments
 (0)