diff --git a/Source/Threading/Primitives/AuSemaphore.Linux.cpp b/Source/Threading/Primitives/AuSemaphore.Linux.cpp index de095d34..701e7403 100644 --- a/Source/Threading/Primitives/AuSemaphore.Linux.cpp +++ b/Source/Threading/Primitives/AuSemaphore.Linux.cpp @@ -142,8 +142,6 @@ namespace Aurora::Threading::Primitives RUNTIME_ASSERT_SHUTDOWN_SAFE(bStatus, "semaphore wait failed: {}", ret) } - - old = this->dwState_; } AuAtomicSub(&this->dwSleeping_, 1u); diff --git a/Source/Threading/Threads/AuOSThread.cpp b/Source/Threading/Threads/AuOSThread.cpp index 7dccd176..ba51498f 100644 --- a/Source/Threading/Threads/AuOSThread.cpp +++ b/Source/Threading/Threads/AuOSThread.cpp @@ -174,7 +174,7 @@ namespace Aurora::Threading::Threads #if defined(AURORA_IS_POSIX_DERIVED) if (this->terminated_) { - WaitFor(this->terminated_.get()); + this->terminated_->Lock(); } #endif }