[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] POSIX threading library branch, master, updated. ea6390b2f20a03b7d
From: |
Samuel Thibault |
Subject: |
[SCM] POSIX threading library branch, master, updated. ea6390b2f20a03b7d504bc68a1c95e645d271149 |
Date: |
Sat, 05 Nov 2011 20:27:49 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "POSIX threading library".
The branch, master has been updated
via ea6390b2f20a03b7d504bc68a1c95e645d271149 (commit)
from 081c7aeb4d4de82ab615db565c60dd776a385c34 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ea6390b2f20a03b7d504bc68a1c95e645d271149
Author: Pino Toscano <address@hidden>
Date: Wed Nov 2 17:38:46 2011 +0100
Remove all the values when deleting a key
When deleting a key using `pthread_key_delete', delete all the values
associated to that key in all the threads available. Otherwise, the
key reuse in `pthread_key_create' can cause new keys to have thread
specific data of the previously used key with the same index.
Add a test for this case, which creates and deletes pairs of keys
checking that they have a NULL thread specific data after creation.
* sysdeps/hurd/pt-key-delete.c (pthread_key_delete): Remove all the
values of the key in all the threads.
* tests/Makefile (CHECK_SRC): Add test-17.c.
* tests/test-17.c: New file.
-----------------------------------------------------------------------
Summary of changes:
sysdeps/hurd/pt-key-delete.c | 19 ++++++++++++++
tests/Makefile | 2 +-
tests/test-17.c | 57 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 77 insertions(+), 1 deletions(-)
create mode 100644 tests/test-17.c
hooks/post-receive
--
POSIX threading library
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] POSIX threading library branch, master, updated. ea6390b2f20a03b7d504bc68a1c95e645d271149,
Samuel Thibault <=