TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Win32 "Hub" Events / Reliable Alternative to PulseEvent API

2 pointsby Tringi10 months ago

1 comment

Tringi10 months ago
The Hub Event (working title) is similar to the standard Win32 Event Object, but multiple consumers (clients) of the event can reliably wait on them, while being set&#x2F;reset by the producer.<p>When the software requires to signal&#x2F;release all waiting threads, each exactly once, that are not necessarily in a single process. Where naïve approach would be to use the flawed PulseEvent API and the system does not already have established IPC by other means (IOCP).<p>The implementation is somewhat heavy for what it does, but I haven&#x27;t figured out simpler one. Perhaps I&#x27;ll get some ideas for v2 here. In fact I believe this thing should be provided as a another kernel object by the OS alongside events, semaphores, mutexes, etc.