]> git.ipfire.org Git - thirdparty/glibc.git/commit
nptl: Use exit_lock when accessing TID on pthread_getcpuclockid
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 23 Aug 2021 17:09:23 +0000 (14:09 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 9 Jul 2025 22:57:21 +0000 (19:57 -0300)
commit71a2526d287a6146850ced2fbe3bbe31cb1e1512
tree2d100fe58aa2583cea64ef2befe50ec4670d7c72
parenta75cd1e3afbc742970c3b9edb486ddaa120eb8c5
nptl: Use exit_lock when accessing TID on pthread_getcpuclockid

Also return EINVAL if the thread is already terminated at the time
of the call.

Checked on x86_64-linux-gnu.
nptl/pthread_getcpuclockid.c
sysdeps/pthread/tst-pthread-exited.c