mirror of https://gitee.com/Nocallback/glibc.git
Browse Source
Thensz/btifix-v3878fe624d4changed lll_futex_timed_wait, which expects a relative timeout, with a __futex_abstimed_wait64, which expects an absolute timeout. However the code still passes a relative timeout. Also, the PTHREAD_PRIO_PROTECT support for clocks different than CLOCK_REALTIME was broken since the inclusion of pthread_mutex_clocklock (9d20e22e46) since lll_futex_timed_wait always use CLOCK_REALTIME. This patch fixes by removing the relative time calculation. It also adds some xtests that tests both thread and inter-process usage. Checked on x86_64-linux-gnu.
6 changed files with 34 additions and 27 deletions
@ -0,0 +1,2 @@ |
|||
#define ENABLE_PP 1 |
|||
#include "tst-mutex5.c" |
|||
@ -0,0 +1,2 @@ |
|||
#define ENABLE_PP 1 |
|||
#include "tst-mutex9.c" |
|||
Loading…
Reference in new issue