d3b41bde96
This patch introduces gomp_sem_getcount wrapper, which uses sem_getvalue for POSIX and atomic loads for linux futex and accel. rtems for now remains broken. 2021-01-18 Jakub Jelinek <jakub@redhat.com> * config/linux/sem.h (gomp_sem_getcount): New function. * config/posix/sem.h (gomp_sem_getcount): New function. * config/posix/sem.c (gomp_sem_getcount): New function. * config/accel/sem.h (gomp_sem_getcount): New function. * task.c (task_fulfilled_p): Use gomp_sem_getcount. (omp_fulfill_event): Likewise. |
||
---|---|---|
.. | ||
alpha | ||
ia64 | ||
mips | ||
powerpc | ||
s390 | ||
sparc | ||
tile | ||
x86 | ||
affinity.c | ||
bar.c | ||
bar.h | ||
doacross.h | ||
futex.h | ||
lock.c | ||
mutex.c | ||
mutex.h | ||
omp-lock.h | ||
proc.c | ||
proc.h | ||
ptrlock.c | ||
ptrlock.h | ||
sem.c | ||
sem.h | ||
wait.h |