summaryrefslogtreecommitdiff
path: root/Changes
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2015-11-15 15:34:45 +0100
committerXavier Leroy <xavier.leroy@inria.fr>2015-11-15 15:34:45 +0100
commit50648ed2b741c21e64dcc3cb82b926f0b320338d (patch)
treeb8b2ada5091eb967fd5534cf5ce375cfb1afc57b /Changes
parent9893e265d8791eea2f9c03055ef5c398296371aa (diff)
downloadocaml-50648ed2b741c21e64dcc3cb82b926f0b320338d.tar.gz
PR#4023 and GPR#68: add Unix.sleepf and improve Unix.sleep
Unix.sleepf provides sleep with sub-second resolution. Unix.sleep is implemented on top of Unix.sleepf. If a handled signal causes the sleep to return early with an EINTR error, catch it and restart the sleep for the remaining time.
Diffstat (limited to 'Changes')
-rw-r--r--Changes6
1 files changed, 6 insertions, 0 deletions
diff --git a/Changes b/Changes
index d5857cb89e..b673fe96b8 100644
--- a/Changes
+++ b/Changes
@@ -174,6 +174,12 @@ Toplevel and debugger:
review by Gabriel Scherer and Jacques-Henri Jourdan)
Other libraries:
+- PR#4023 and GPR#68: add Unix.sleepf (sleep with sub-second resolution)
+ (Evgenii Lepikhin and Xavier Leroy)
+* Protect Unix.sleep against interruptions by handled signals.
+ Before, a handled signal could cause Unix.sleep to return early.
+ Now, the sleep is restarted until the given time is elapsed.
+ (Xavier Leroy)
- PR#6896: serious reimplementation of Big_int.float_of_big_int and
Ratio.float_of_ratio, ensuring that the result is correctly rounded.
(Xavier Leroy)