1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

nptl: Move lowlevellock into libc [BZ #15648]

And export __lll_lock_wait and __lll_lock_wait_private as
GLIBC_PRIVATE.  This should eliminate the need for the previous
riscv kludge.
This commit is contained in:
Florian Weimer
2021-02-22 18:30:52 +01:00
parent 541e53c9dd
commit 2f4019de81
6 changed files with 9 additions and 36 deletions

View File

@@ -35,10 +35,8 @@ __lll_lock_wait_private (int *futex)
futex_wait ((unsigned int *) futex, 2, LLL_PRIVATE); /* Wait if *futex == 2. */
}
}
libc_hidden_def (__lll_lock_wait_private)
/* This function doesn't get included in libc. */
#if IS_IN (libpthread)
void
__lll_lock_wait (int *futex, int private)
{
@@ -52,4 +50,4 @@ __lll_lock_wait (int *futex, int private)
futex_wait ((unsigned int *) futex, 2, private); /* Wait if *futex == 2. */
}
}
#endif
libc_hidden_def (__lll_lock_wait)