4 ms·
Wasn't win32 done like that? I have vague memories of PostMessage/GetMessage/TranslateMessage/DispatchMessage loops. I never did enough Windows development to
by nostrademons 13y ago
Wasn't win32 done like that? I have vague memories of PostMessage/GetMessage/TranslateMessage/DispatchMessage loops. I never did enough Windows development to understand where the actual syscall boundaries were, but since everything was done by message passing to the main loop of your application, the API seems amenable to pumping out multiple messages in one syscall.
- yuhong 13y agoCurrently PostMessage/GetMessage I think are syscalls, TranslateMessage/DispatchMessage are not most of the time.
- FooBarWidget 13y agoWindows's messaging API is indeed asynchronous, but they're high-level APIs built on top of synchronous system calls, and therefore do not improve performance as much as they could. For real asynchronous system calls, see the FlexSC paper I linked in my other comment.