Skip to content

Commit a22d843

Browse files
author
Aidan Lee
committed
Remove hardcoded posix semaphore value
Forgot I changed this during debugging
1 parent 4249ea6 commit a22d843

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hx/thread/CountingSemaphore.posix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ struct hx::thread::CountingSemaphore_obj::Impl
1818

1919
hx::thread::CountingSemaphore_obj::CountingSemaphore_obj(int value) : impl(new Impl())
2020
{
21-
if (0 != (sem_init(&impl->semaphore, false, 3)))
21+
if (0 != (sem_init(&impl->semaphore, false, value)))
2222
{
2323
hx::Throw(HX_CSTRING("Failed to create semaphore"));
2424
}

0 commit comments

Comments
 (0)