mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
IMPORT: plock: also support inlining the int code
Commit 9db830b ("plock: support inlining exponential backoff code") added an option to support inlining of the wait code for longs but forgot to do it for ints. Let's do it now. This is plock upstream commit b1f9f0d252fa40577d11cfb2bc0a809d6960a297.
This commit is contained in:
parent
3b4d2b7975
commit
c6b98f05d2
@ -138,7 +138,11 @@ static unsigned long pl_wait_unlock_long(const unsigned long *lock, const unsign
|
|||||||
_r; /* return value */ \
|
_r; /* return value */ \
|
||||||
})
|
})
|
||||||
#else
|
#else
|
||||||
|
# if defined(PLOCK_INLINE_EBO)
|
||||||
|
__attribute__((unused,always_inline,no_instrument_function)) inline
|
||||||
|
# else
|
||||||
__attribute__((unused,noinline,no_instrument_function))
|
__attribute__((unused,noinline,no_instrument_function))
|
||||||
|
# endif
|
||||||
static unsigned int pl_wait_unlock_int(const unsigned int *lock, const unsigned int mask)
|
static unsigned int pl_wait_unlock_int(const unsigned int *lock, const unsigned int mask)
|
||||||
{
|
{
|
||||||
unsigned int ret;
|
unsigned int ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user