[Issue 13699] New: thread creation and starting should be nothrow

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Nov 7 11:24:04 PST 2014


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

          Issue ID: 13699
           Summary: thread creation and starting should be nothrow
           Product: D
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: code at dawg.eu

A lot of core.thread functions are not nothrow because they escalate errors of
the underlying implementation (pthread, Windows threads) by throwing a
ThreadException. Most of those functions should only fail on resource
exhaustion and recovering from that is a bit tricky. So I wonder if we should
handle them as fatal errors and mark the high-level core.thread functions as
nothrow.

--


More information about the Digitalmars-d-bugs mailing list