Skip to content

Commit

Permalink
Fix build on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Jul 31, 2023
1 parent 07e70dc commit 33c8301
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ bool named_mutex::signal(intmax_t handle, bool& io_error) {

uint_least32_t named_mutex::wait(intmax_t handle, int_least32_t milliseconds_timeout) {
if (reinterpret_cast<HANDLE>(handle) == INVALID_HANDLE_VALUE) return WAIT_FAILED;
return static_cast<uint_least32_t>(WaitForSingleObject(reinterpret_cast<HANDLE>(handle), milliseconds_timeout == -1 ? INFINITE : milliseconds_timeout))
return static_cast<uint_least32_t>(WaitForSingleObject(reinterpret_cast<HANDLE>(handle), milliseconds_timeout == -1 ? INFINITE : milliseconds_timeout));
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ bool named_semaphore::signal(intmax_t handle, int_least32_t release_count, int_l

uint_least32_t named_semaphore::wait(intmax_t handle, int_least32_t milliseconds_timeout) {
if (reinterpret_cast<HANDLE>(handle) == INVALID_HANDLE_VALUE) return WAIT_FAILED;
return static_cast<uint_least32_t>(WaitForSingleObject(reinterpret_cast<HANDLE>(handle), milliseconds_timeout == -1 ? INFINITE : milliseconds_timeout))
return static_cast<uint_least32_t>(WaitForSingleObject(reinterpret_cast<HANDLE>(handle), milliseconds_timeout == -1 ? INFINITE : milliseconds_timeout));
}

0 comments on commit 33c8301

Please sign in to comment.