6 ms·
Also win32/16 and X both have event loops at the core
by pacaro 9y ago
Also win32/16 and X both have event loops at the core
- toast0 9y agoXlib has an event loop at the core, but if you write your client directly to the socket protocol, you can arrange it however you like.
- pacaro 9y agoYou could probably do the same with PeekMessage in win32, maybe call it periodically in a green threading library, or similar. But the most common mechanism is an event loop. I'm sure people have developed X applications that talk the protocol directly, but it isn't the typical way to do it.
- Matthias247 9y agoThe interesting question is more or less which GUI frameworks are not build around a singlethreaded event loop. QT and GTK/glib are too. Adobe AIR too. I think the Java frameworks (AWT, Swing) also.