Commit 25da1d4
committed
ug_pthread_cond_reltimedwait: glibc < 2.30 compat
In previous commit pthread_cond_clockwait() was used instead of
pthread_cond_timedwait+pthread_condattr_setclock(CLOCK_MONOTONIC).
BUT _clockwait() was introduced in glibc 2.30, AlmaLinux is using
2.28 therefore it doesn't compile. I don't want to reintroduce
ug_pthread_cond_init() with clock in pthread_condattr_t so make a
compat using CLOCK_REALITME instead of monotonic. It shouldn't be a big
deal. CLOCK_REALTIME was used in UG normally all the time and it doesn't
caused problems (CLOCK_MONOTONIC is usually just more correct).1 parent f004e5f commit 25da1d4
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
49 | 59 | | |
50 | 60 | | |
51 | 61 | | |
| |||
61 | 71 | | |
62 | 72 | | |
63 | 73 | | |
64 | | - | |
| 74 | + | |
65 | 75 | | |
66 | 76 | | |
67 | 77 | | |
| |||
91 | 101 | | |
92 | 102 | | |
93 | 103 | | |
94 | | - | |
| |||
0 commit comments