[Issue 22481] New: Thread.sleep should be pure
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 5 02:28:25 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22481
Issue ID: 22481
Summary: Thread.sleep should be pure
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: contact at lsferreira.net
Conceptually, a sleep is not a side effect and can be implemented with
unoptimized assembly code, e.g. running n noops instructions. Since we are
using the kernel implementation for precision sleep and it provides a well
documented behaviour we should trust it and fake pure it.
--
More information about the Digitalmars-d-bugs
mailing list