]> git.ipfire.org Git - thirdparty/glibc.git/commit
pthread: Refactor semaphore code
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 3 Feb 2021 16:50:21 +0000 (13:50 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 8 Feb 2021 17:10:42 +0000 (14:10 -0300)
commitda4aea0b5e60ec2351367b0facee24e6035a7129
tree7892242d802abdadf07a9e27c7af8292940630a3
parente9fed2438a1ff475821864f906286dc58907f06b
pthread: Refactor semaphore code

The internal semaphore list code is moved to a specific file,
sem_routine.c, and the internal usage is simplified to only two
functions (one to insert a new semaphore and one to remove it
from the internal list).  There is no need to expose the
internal locking, neither how the semaphore mapping is implemented.

No functional or semantic change is expected, tested on
x86_64-linux-gnu.
htl/Makefile
htl/semaphoreP.h
nptl/Makefile
nptl/semaphoreP.h
sysdeps/pthread/sem_close.c
sysdeps/pthread/sem_open.c
sysdeps/pthread/sem_routines.c [new file with mode: 0644]
sysdeps/pthread/sem_routines.h [new file with mode: 0644]