Bug 13699 – thread creation and starting should be nothrow

Status
NEW
Severity
enhancement
Priority
P4
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-11-07T19:24:04Z
Last change time
2024-12-07T13:34:31Z
Assigned to
No Owner
Creator
Martin Nowak
Moved to GitHub: dmd#17287 →

Comments

Comment #0 by code — 2014-11-07T19:24:04Z
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.
Comment #1 by robert.schadek — 2024-12-07T13:34:31Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17287 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB