aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-05-04 15:16:39 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-05-04 15:16:39 -0400
commit09cbcf8841a0b80cdbdf40c2b48acccbaa945ce8 (patch)
treededa8f8f46e2033b1f6c3d19d8e2b52ae1fab9e6 /src/main.cpp
parent70a9ee3dd68d8ed28a9fd2dc29f6c88fee5d789e (diff)
downloadzig-09cbcf8841a0b80cdbdf40c2b48acccbaa945ce8.tar.gz
zig-09cbcf8841a0b80cdbdf40c2b48acccbaa945ce8.zip
std lib sleep APIs: add doc comments and no @intCast
The sleep APIs are now documented as having spurious wakeups and no precision of timing guaranteed. They also cannot fail. This commit makes the entire range of u64 legal values to pass to std.os.time.sleep and std.os.time.posixSleep. Values that do not fit in the native system APIs will cause a sleep for the longest possible duration and then be handled as a spurious wakeup.
Diffstat (limited to 'src/main.cpp')
0 files changed, 0 insertions, 0 deletions