From a22d843e7f9079b3377440b6b5d16d19ec329eca Mon Sep 17 00:00:00 2001 From: Aidan Lee Date: Sun, 8 Mar 2026 18:18:13 +0000 Subject: [PATCH] Remove hardcoded posix semaphore value Forgot I changed this during debugging --- src/hx/thread/CountingSemaphore.posix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hx/thread/CountingSemaphore.posix.cpp b/src/hx/thread/CountingSemaphore.posix.cpp index db264945d..bc6e9eddb 100644 --- a/src/hx/thread/CountingSemaphore.posix.cpp +++ b/src/hx/thread/CountingSemaphore.posix.cpp @@ -18,7 +18,7 @@ struct hx::thread::CountingSemaphore_obj::Impl hx::thread::CountingSemaphore_obj::CountingSemaphore_obj(int value) : impl(new Impl()) { - if (0 != (sem_init(&impl->semaphore, false, 3))) + if (0 != (sem_init(&impl->semaphore, false, value))) { hx::Throw(HX_CSTRING("Failed to create semaphore")); }