-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JackPosixProcessSync::LockedTimedWait: Check for time jumps
POSIX functions with names ending with _timedwait use the real time clock and as such as sensitive to changes in system time during the call. This is described in: [1]. This patch implements a wrapper for pthread_cond_timedwait() that, if the function call fails, will check if the failure is due to a time warp and if so, will restart the call. Based on idea and implementation by Ben Hutchings <[email protected]> [1] https://sourceware.org/ml/libc-alpha/2018-12/msg00512.html v2: Check if CLOCK_MONOTONIC is available. Signed-off-by: Maciej Wolny <[email protected]>
- Loading branch information
Showing
1 changed file
with
73 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters