News for hackers. Stuff that matters.
Re:Multithreaded toolkits: A failed dream? (2004) by panic on Monday November 02, 2015 @06:18AM (#10491227)
Modern single-threaded UI frameworks don't go into a loop while you're interacting with something. Say you click on a button and drag. This enters the UI framework as a "mouse down" event followed by several "mouse dragged" events. After handling each event (or between events), the framework can decide to do other work, like updating a spinner.
Re:Multithreaded toolkits: A failed dream? (2004) by jameshart on Monday November 02, 2015 @07:57AM (#10491556)
That's not a "modern" GUI framework approach - eventloops have been a feature of GUI systems back to the Apple Lisa and Windows 1.
Re:Multithreaded toolkits: A failed dream? (2004) by panic on Monday November 02, 2015 @08:10AM (#10491612)
Yes, event loops are quite an old idea. I just put "modern" there to exclude old systems that encouraged polling. For example, I'm pretty sure classic Mac OS entered a loop while tracking the mouse in menus.