From 6161d9b79419879d9cd3374c889d124cd1e3617e Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Sat, 12 Apr 2025 18:27:48 -0400 Subject: [PATCH] uwu --- CMakeLists.txt | 2 +- include/blt/std/thread.h | 16 ++++++++-------- libraries/parallel-hashmap | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 153bcfb..8fc653b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 5.3.1) +set(BLT_VERSION 5.3.2) set(BLT_TARGET BLT) diff --git a/include/blt/std/thread.h b/include/blt/std/thread.h index 559bd78..24851ea 100644 --- a/include/blt/std/thread.h +++ b/include/blt/std/thread.h @@ -37,25 +37,25 @@ namespace blt { - class barrier + class barrier_t { public: - explicit barrier(blt::size_t threads, std::optional> exit_cond = {}): + explicit barrier_t(blt::size_t threads, std::optional> exit_cond = {}): thread_count(threads), threads_waiting(0), use_count(0), exit_cond(exit_cond), count_mutex(), cv() { if (threads == 0) throw std::runtime_error("Barrier thread count cannot be 0"); } - barrier(const barrier& copy) = delete; + barrier_t(const barrier_t& copy) = delete; - barrier(barrier&& move) = delete; + barrier_t(barrier_t&& move) = delete; - barrier& operator=(const barrier& copy) = delete; + barrier_t& operator=(const barrier_t& copy) = delete; - barrier& operator=(barrier&& move) = delete; + barrier_t& operator=(barrier_t&& move) = delete; - ~barrier() = default; + ~barrier_t() = default; void wait() { @@ -101,7 +101,7 @@ namespace blt // improves performance by not blocking the thread for n iterations of the loop. // If the condition is not met by the end of this loop we can block the thread. - static constexpr blt::size_t BUSY_LOOP_WAIT = 200; + static constexpr size_t BUSY_LOOP_WAIT = 200; }; /** diff --git a/libraries/parallel-hashmap b/libraries/parallel-hashmap index 154c634..d88c5e1 160000 --- a/libraries/parallel-hashmap +++ b/libraries/parallel-hashmap @@ -1 +1 @@ -Subproject commit 154c63489e84d5569d3b466342a2ae8fd99e4734 +Subproject commit d88c5e15079047777b418132ece5879e7c9aaa2b