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:
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user