Skip to content

Commit

Permalink
Review code
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Sep 17, 2023
1 parent a7b7eb1 commit 5c2307f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
using namespace xtd::native;

intmax_t unnamed_event_wait_handle::create(bool initial_state, bool manual_reset) {
semaphore_t semaphore;
auto semaphore = semaphore_t {};
if (semaphore_create(current_task(), &semaphore, SYNC_POLICY_FIFO, initial_state ? 1 : 0) != err_none)
return reinterpret_cast<intmax_t>(SEM_FAILED);
return static_cast<intmax_t>(semaphore);
Expand Down

0 comments on commit 5c2307f

Please sign in to comment.