3 ms·
Which sync primitive has Microsoft deprecated and discouraged? WaitForMultipleObjects and Nt(Set|Reset|Pulse)Event are used throughout Windows source code
by zeusk 3y ago
Which sync primitive has Microsoft deprecated and discouraged?
WaitForMultipleObjects and Nt(Set|Reset|Pulse)Event are used throughout Windows source code
- dblohm7 3y agoIt's still used, but PulseEvent has been discouraged for a long time. [1] https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-pulseevent#remarks https://learn.microsoft.com/en-us/windows/win32/api/winbase/... [2] https://devblogs.microsoft.com/oldnewthing/20050105-00/?p=36803 https://devblogs.microsoft.com/oldnewthing/20050105-00/?p=36...
- sumtechguy 3y agoI had a wince proj that someone had used that thing and did not understand the 'pulse' part of that. Where it could go off but if nothing was waiting it would not signal. So they were really confused why sometimes their home grown event queue would be delayed until another event went off and it would drain their queue.