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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Aug 28 10:02:29 PDT 2015


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

--- Comment #9 from Sean Kelly <sean at invisibleduck.org> ---
In general I agree.  However, one key feature of std.concurrency is that it can
use different Schedulers to achieve different performance requirements.  So
general actor code should never simply assume it's being run in a dedicated
kernel thread or whatever.  But as this is a systems language, if you
explicitly specify the Scheduler at initialization time, then code written
specifically for that application can exploit this knowledge and call the
low-level core.thread routines as needed.  The assumption being that if you
specify the Scheduler then you Know What You're Doing and accept any
consequences for mistakes.

--


More information about the Digitalmars-d-bugs mailing list