Closed aferust closed 3 years ago
Actually since then I made something better... you can
http://dpldocs.info/experimental-docs/arsd.simpledisplay.runInGuiThread.html
runInGuiThread now!
Did you know you can use UFCS on delegate literals?
neat :)
Actually since then I made something better... you can
http://dpldocs.info/experimental-docs/arsd.simpledisplay.runInGuiThread.html
runInGuiThread now!
Hey c'mon. You took my chance for contributing :-D.
yeah this came up because i wanted to do the integrated terminal emulator thing in terminal.d... and to retrofit old terminal code, i put the gui in a separate thread. (which i now kinda regret, i should have just had them communicate through a pipe but meh oh well)
this meant i needed some way to run stuff like menus in the appropriate thread and thus that little function was born. kinda hacky but seems to work.
Dear Adam,
I asked if minigui is thread-safe, and you said that you don't know almost a year ago. I implemented it please do your tests.