1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

nptl: Move pthread_mutex_consistent into libc

And deprecated pthread_mutex_consistent_np, its old name.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
This commit is contained in:
Florian Weimer
2021-04-21 19:49:50 +02:00
parent 2208066603
commit f03b78fae4
69 changed files with 135 additions and 72 deletions

View File

@ -241,14 +241,14 @@ do_test (void)
#endif
#ifndef NOT_CONSISTENT
e = pthread_mutex_consistent_np (&m1);
e = pthread_mutex_consistent (&m1);
if (e != 0)
{
printf ("%ld: mutex_consistent m1 failed with error %d\n", round, e);
return 1;
}
e = pthread_mutex_consistent_np (&m2);
e = pthread_mutex_consistent (&m2);
if (e != 0)
{
printf ("%ld: mutex_consistent m2 failed with error %d\n", round, e);

View File

@ -92,7 +92,7 @@ mutex_timedlock of %d in thread %ld failed with %d\n",
}
if (e == EOWNERDEAD)
pthread_mutex_consistent_np (&map[r]);
pthread_mutex_consistent (&map[r]);
if (e == 0 || e == EOWNERDEAD)
state[r] = 1;

View File

@ -14,10 +14,10 @@ tf (void *data)
int err = pthread_mutex_lock (&m);
if (err == EOWNERDEAD)
{
err = pthread_mutex_consistent_np (&m);
err = pthread_mutex_consistent (&m);
if (err)
{
puts ("pthread_mutex_consistent_np");
puts ("pthread_mutex_consistent");
exit (1);
}
}