Home
last modified time | relevance | path

Searched refs:futex (Results 1 – 25 of 32) sorted by relevance

12

/glibc-2.36/sysdeps/nptl/
Dlowlevellock.h79 extern void __lll_lock_wait_private (int *futex);
81 extern void __lll_lock_wait (int *futex, int private);
94 #define __lll_lock(futex, private) \ argument
97 int *__futex = (futex); \
107 #define lll_lock(futex, private) \ argument
108 __lll_lock (&(futex), private)
118 #define __lll_cond_lock(futex, private) \ argument
121 int *__futex = (futex); \
125 #define lll_cond_lock(futex, private) __lll_cond_lock (&(futex), private) argument
128 extern void __lll_lock_wake_private (int *futex);
[all …]
Dfutex-internal.h317 __futex_clocklock64 (int *futex, clockid_t clockid, in __futex_clocklock64() argument
320 if (__glibc_unlikely (atomic_compare_and_exchange_bool_acq (futex, 1, 0))) in __futex_clocklock64()
322 while (atomic_exchange_acq (futex, 2) != 0) in __futex_clocklock64()
325 err = __futex_abstimed_wait64 ((unsigned int *) futex, 2, clockid, in __futex_clocklock64()
Daio_misc.h35 #define AIO_MISC_WAIT(result, futex, timeout, cancel) \ argument
37 volatile unsigned int *futexaddr = &futex; \
38 unsigned int oldval = futex; \
Dgai_misc.h36 #define GAI_MISC_WAIT(result, futex, timeout, cancel) \ argument
38 volatile unsigned int *futexaddr = &futex; \
39 unsigned int oldval = futex; \
Dlowlevellock-futex.h59 long int __ret = INTERNAL_SYSCALL (futex, nargs, futexp, op, \
/glibc-2.36/nptl/
Dlowlevellock.c25 __lll_lock_wait_private (int *futex) in __lll_lock_wait_private() argument
27 if (atomic_load_relaxed (futex) == 2) in __lll_lock_wait_private()
28 goto futex; in __lll_lock_wait_private()
30 while (atomic_exchange_acquire (futex, 2) != 0) in __lll_lock_wait_private()
32 futex: in __lll_lock_wait_private()
33 LIBC_PROBE (lll_lock_wait_private, 1, futex); in __lll_lock_wait_private()
34 futex_wait ((unsigned int *) futex, 2, LLL_PRIVATE); /* Wait if *futex == 2. */ in __lll_lock_wait_private()
40 __lll_lock_wait (int *futex, int private) in libc_hidden_def()
42 if (atomic_load_relaxed (futex) == 2) in libc_hidden_def()
43 goto futex; in libc_hidden_def()
[all …]
Dsem_wait.c56 int *futex = (int *) sem; in __old_sem_wait() local
61 if (atomic_decrement_if_positive (futex) > 0) in __old_sem_wait()
65 err = lll_futex_wait_cancel (futex, 0, LLL_SHARED); in __old_sem_wait()
96 int *futex = (int *) sem; in __old_sem_trywait() local
99 if (*futex > 0) in __old_sem_trywait()
101 val = atomic_decrement_if_positive (futex); in __old_sem_trywait()
Dsem_post.c89 unsigned int *futex = (unsigned int *) sem; in __old_sem_post() local
94 (void) atomic_increment_val (futex); in __old_sem_post()
96 futex_wake (futex, 1, LLL_SHARED); in __old_sem_post()
Dfutex-internal.c40 return INTERNAL_SYSCALL_CANCEL (futex, futex_word, op, expected, in __futex_abstimed_wait_common32()
44 return INTERNAL_SYSCALL_CALL (futex, futex_word, op, expected, in __futex_abstimed_wait_common32()
176 err = INTERNAL_SYSCALL_CALL (futex, futex_word, op_pi, 0, pts32); in libc_hidden_def()
Dpthread_mutex_trylock.c291 int e = INTERNAL_SYSCALL_CALL (futex, &mutex->__data.__lock, in ___pthread_mutex_trylock()
DMakefile51 futex-internal \
263 CFLAGS-futex-internal.c += -fexceptions -fasynchronous-unwind-tables
/glibc-2.36/sysdeps/unix/sysv/linux/s390/
Delision-unlock.c24 __lll_unlock_elision(int *futex, short *adapt_count, int private) in __lll_unlock_elision() argument
35 if (atomic_load_relaxed (futex) == 0) in __lll_unlock_elision()
58 lll_unlock ((*futex), private); in __lll_unlock_elision()
Delision-trylock.c31 __lll_trylock_elision (int *futex, short *adapt_count) in __lll_trylock_elision() argument
64 if (__glibc_likely (atomic_load_relaxed (futex) == 0)) in __lll_trylock_elision()
96 return lll_trylock (*futex); in __lll_trylock_elision()
Delision-lock.c40 __lll_lock_elision (int *futex, short *adapt_count, EXTRAARG int private) in __lll_lock_elision() argument
60 if (__glibc_likely (atomic_load_relaxed (futex) == 0)) in __lll_lock_elision()
118 return LLL_LOCK ((*futex), private); in __lll_lock_elision()
/glibc-2.36/sysdeps/unix/sysv/linux/powerpc/
Delision-trylock.c31 __lll_trylock_elision (int *futex, short *adapt_count) in __lll_trylock_elision() argument
44 if (*futex == 0) in __lll_trylock_elision()
68 return lll_trylock (*futex); in __lll_trylock_elision()
/glibc-2.36/sysdeps/unix/sysv/linux/x86/
Delision-trylock.c31 __lll_trylock_elision (int *futex, short *adapt_count) in __lll_trylock_elision() argument
48 if (*futex == 0) in __lll_trylock_elision()
74 return lll_trylock (*futex); in __lll_trylock_elision()
Delision-lock.c39 __lll_lock_elision (int *futex, short *adapt_count, EXTRAARG int private) in __lll_lock_elision() argument
58 if (*futex == 0) in __lll_lock_elision()
100 return LLL_LOCK ((*futex), private); in __lll_lock_elision()
/glibc-2.36/sysdeps/unix/sysv/linux/i386/
Dtst-bz21269.c59 futex (int *uaddr, int futex_op, int val, void *timeout, int *uaddr2, in futex() function
138 futex ((int *) &ftx, FUTEX_WAIT, 1, NULL, NULL, 0); in threadproc()
212 futex ((int*) &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in do_test()
228 futex ((int*) &ftx, FUTEX_WAKE, 0, NULL, NULL, 0); in do_test()
/glibc-2.36/ChangeLog.old/
DChangeLog.224185 (futex-internal.h): Include file.
4316 htl: Add futex-internal.h
4318 * sysdeps/htl/futex-internal.h: New file.
5190 lowlevellock-futex: Remove not used macros
5192 * sysdeps/nptl/lowlevellock-futex.h: Modified.
5201 futex: Remove not used futex_reltimed_wait{_cancelable}
5203 * sysdeps/nptl/futex-internal.h: Modified.
5647 * sysdeps/nptl/futex-internal.h: Modified.
5684 * sysdeps/nptl/futex-internal.c: Modified.
5687 * sysdeps/nptl/futex-internal.h: Modified.
[all …]
DChangeLog.nptl559 PI-aware futex operations if available and mutex is PI-aware.
564 cancellation occurred just after futex returned successfully
566 (__pthread_cond_wait): Use PI-aware futex operations if
1308 futex pointer into RDI_LP. Use RSP_LP to operate on stack.
1905 the async cancel enable and the futex operation.
1910 the async cancel enable and the futex operation.
2197 THREAD_SELF->cancelhandling after returning from futex call.
2373 path when not using absolute timeout futex.
2452 (LOAD_FUTEX_WAIT_ABS): Fix futex parameter in case private futexes
2950 If we time out, try one last time to lock the futex to avoid
[all …]
DChangeLog.205188 (futex-internal.h): Include file.
5192 (futex-internal.h): Include file.
5195 (futex-internal.h): Include file.
5198 (futex-internal.h): Include file.
5201 (futex-internal.h): Include file.
5202 * sysdeps/nptl/futex-internal.h: Modified.
5205 * sysdeps/nptl/lowlevellock-futex.h: Modified.
5230 nptl: Replace non cancellable pause/nanosleep with futex
5255 Consolidate lowlevellock-futex.h
5257 * sysdeps/nptl/lowlevellock-futex.h: Modified.
[all …]
DChangeLog.ports-hppa817 Use shared futex in lll_wait_tid().
DChangeLog.ports-m68k908 alignment of futex variables.
/glibc-2.36/sysdeps/unix/sysv/linux/
Dsyscall-names.list147 futex
/glibc-2.36/manual/
Dusers.texi313 @c clear SETXID_BITMASK and release the futex if SETXID_BITMASK is
319 @c issue the syscall, clear SETXID_BITMASK, release the futex, and

12