Skip to content

Commit

Permalink
[Core] Alignt event behaviour between Posix and Windows (#1411)
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Wielders <[email protected]>
  • Loading branch information
sebaszm and pwielders authored Sep 26, 2023
1 parent a04c88a commit 131debf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Source/core/Sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ namespace Core {
#endif

#ifdef __WINDOWS__
m_syncEvent = ::CreateEvent(nullptr, blManualReset, blSet, nullptr);
m_syncEvent = ::CreateEvent(nullptr, TRUE, blSet, nullptr);

ASSERT(m_syncEvent != nullptr);
#endif
Expand Down Expand Up @@ -1020,7 +1020,12 @@ namespace Core {
#endif

#ifdef __WINDOWS__
::SetEvent(m_syncEvent);
if (m_blManualReset == true) {
::SetEvent(m_syncEvent);
}
else {
::PulseEvent(m_syncEvent);
}
#endif
}

Expand Down

0 comments on commit 131debf

Please sign in to comment.