diff options
author | Rich Felker <dalias@aerifal.cx> | 2019-02-16 10:13:31 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2019-02-16 10:13:31 -0500 |
commit | ba74a42cee90c9a4425188a021b6ad8ba80b9468 (patch) | |
tree | d253866fe48ba1e237e1a0f1fa5bb0e899538e98 /src/unistd/sleep.c | |
parent | e4235d70672d9751d7718ddc2b52d0b426430768 (diff) | |
download | musl-ba74a42cee90c9a4425188a021b6ad8ba80b9468.tar.gz musl-ba74a42cee90c9a4425188a021b6ad8ba80b9468.tar.xz musl-ba74a42cee90c9a4425188a021b6ad8ba80b9468.zip |
rewrite pthread_key_delete to use global thread list
with the availability of the thread list, there is no need to mark tsd key slots dirty and clean them up only when a free slot can't be found. instead, directly iterate threads and clear any value associated with the key being deleted. no synchronization is necessary for the clearing, since there is no way the slot can be accessed without having synchronized with the creation of a new key occupying the same slot, which is already sequenced after and synchronized with the deletion of the old key.
Diffstat (limited to 'src/unistd/sleep.c')
0 files changed, 0 insertions, 0 deletions