Good point about GDI, I wasn't aware about that restriction. Windows
does have fibers which are basically coroutines - I wonder if a separate
Windows implementation could use those. I don't see any such restriction
for fibers.

On Thu, Mar 02, 2017 at 03:58:01PM +0100, "Torsten Hüter" wrote:
> Chris:
> >> With a proper implementation this should be indistinguishable from
> >> coroutines, including to wx.
> 
> This is your opinion not mine, I'm not sure. Again, read the paragraph about 
> secondary threads:
> http://docs.wxwidgets.org/3.1/overview_thread.html
> 
> "[..] under Win32 a thread can only access GDI objects such as pens, brushes, 
> device contexts created by itself and not by the other threads [..]"
> 
> One of the reasons why they strongly recommend "no secondary threads call GUI 
> functions".
> 
> --
> 
> However, if you can ensure that the coroutines never call GUI functions, 
> threads should be a nice alternative. I remember Orson has written, that this 
> should be possible. Maybe he can answer the question if this restriction is 
> still acceptable. Then I could rescue my implementation from my backups.
> 
> Thanks,
> Torsten
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : [email protected]
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp

_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to