* Replaced the previous pthread_key implementation with a lockless one

that does not rely on the Be API TLS anymore, and is also more compliant
  with respect to the lifespan of the key specific values.
* It supports up to 256 different keys, which is equivalent of the solution
  that FreeBSD offers.
* The main thread now also gets a pthread_thread structure.
* Reenabled the POSIX suite test pthread_key_delete_2-1 as we now pass it.
* This also fixes bug #1642.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25000 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-04-17 13:44:39 +00:00
parent 33b577d3b3
commit f127ebfd93
6 changed files with 187 additions and 119 deletions
@@ -2,7 +2,7 @@
usage()
{
cat <<EOF
cat <<EOF
Usage: $0 all
to run all the available tests
@@ -13,7 +13,7 @@ Usage: $0 all
functionality areas as specified by the
letter tag in the posix spec
$0 [AIO|MEM|MSG|SEM|SIG|THR|TMR|TPS]
EOF
}
@@ -62,8 +62,7 @@ threads_tests()
echo "pthread_key_delete()"
conformance/interfaces/pthread_key_delete/pthread_key_delete_1-1
conformance/interfaces/pthread_key_delete/pthread_key_delete_1-2
# conformance/interfaces/pthread_key_delete/pthread_key_delete_2-1
echo "pthread_key_delete_2-1: FIXME: test blocks, see bug #1642"
conformance/interfaces/pthread_key_delete/pthread_key_delete_2-1
echo
echo "pthread_once()"
conformance/interfaces/pthread_once/pthread_once_1-1