On Sunday, 9 July 2017 at 21:12:24 UTC, bauss wrote:
On Sunday, 9 July 2017 at 19:43:14 UTC, Christian Köstlin wrote:
I wonder if there is any fiber based / fiber compatible
UI-Toolkit out for dlang. The second question is, if it would
make sense at all to have such a thing?
christian
It doesn't really make sense to have that, because most (if not
all) operating systems only allow rendering from a single
thread and I believe OSX (possibly macOS too.) only allows it
from the main thread. Which means the only thing you can really
operate on other threads are events, but you'll always have to
do callbacks to your UI thread in order to render.
Aren't all fibers executed from a single thread?