November 07, 2014 [Issue 13699] New: thread creation and starting should be nothrow | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: code@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. -- |
Copyright © 1999-2021 by the D Language Foundation