diff --git a/CMakeLists.txt b/CMakeLists.txt index 6601997..5f2ebee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 2.1.14) +set(BLT_VERSION 2.1.15) set(BLT_TARGET BLT) diff --git a/include/blt/std/thread.h b/include/blt/std/thread.h index b759632..4ee56f9 100644 --- a/include/blt/std/thread.h +++ b/include/blt/std/thread.h @@ -62,11 +62,11 @@ namespace blt // (unique_lock acquires lock) std::unique_lock lock(count_mutex); std::size_t current_uses = use_count; - + if (++threads_waiting == thread_count) { threads_waiting = 0; - use_count++; + ++use_count; cv.notify_all(); } else { diff --git a/libraries/parallel-hashmap b/libraries/parallel-hashmap index d88c5e1..8a889d3 160000 --- a/libraries/parallel-hashmap +++ b/libraries/parallel-hashmap @@ -1 +1 @@ -Subproject commit d88c5e15079047777b418132ece5879e7c9aaa2b +Subproject commit 8a889d3699b3c09ade435641fb034427f3fd12b6