diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2017-04-26 06:48:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-26 06:48:20 -0700 |
commit | a5a8c6cdc6e3b732fc5a344878b165f149d99729 (patch) | |
tree | 2131c4a28caca300a6cef99d529a734699f52348 /build.sh | |
parent | d3d2efd166c408d59cde076c674fd140e7313e4d (diff) | |
download | coreclr-a5a8c6cdc6e3b732fc5a344878b165f149d99729.tar.gz coreclr-a5a8c6cdc6e3b732fc5a344878b165f149d99729.tar.bz2 coreclr-a5a8c6cdc6e3b732fc5a344878b165f149d99729.zip |
Fix thread wait to be resilient to real time clock changes on Unix (#11213)
This change fixes a problem that happens when a thread uses a timed wait
and the real time clock change in the system (e.g. due to the user action,
time server sync, leap second, etc). In such case, the wait may end up waiting
for shorter or longer period of time.
It fixes the issue for Thread.Sleep and timed wait on a process local synchronization
primitives by using CLOCK_MONOTONIC instead of CLOCK_REALTIME for waiting on
cond vars.
Unfortunately, the waits on cross process synchronication primitives like
named mutexes always use CLOCK_REALTIME, so this fix works on process local primitives
only.
Diffstat (limited to 'build.sh')
0 files changed, 0 insertions, 0 deletions