[Issue 14953] std.concurrency: Add function to flush message box

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Aug 31 02:11:28 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14953

--- Comment #10 from Chris <wendlec at tcd.ie> ---
I see. It still may be necessary to know the size of the message box and be
able to flush it. The fact that messages stick around for the life span of the
thread can lead to undesired behavior, especially when the thread is meant to
be running in the background for the duration of the program. You may close a
thread down, once you're no longer interested in the message box, and start a
new one for the next input, but that seems rather wasteful and may block the
main thread while it is waiting for the closing down protocol to finish. I can
imagine that this may be an issue for computer games. If there is a good
solution other than introducing a new method to flush the message box, I'd be
happy, but so far I haven't found it.

--


More information about the Digitalmars-d-bugs mailing list