summaryrefslogtreecommitdiff
path: root/private.c
diff options
context:
space:
mode:
authorrpj <rpj>1998-07-26 14:49:34 +0000
committerrpj <rpj>1998-07-26 14:49:34 +0000
commit537fe68bc5ca2dd75f4f54146a50a39c5b55b8e3 (patch)
tree25adc4da03898e307d43f8dcc3450b3b5260c867 /private.c
parent779359d2cf050c2885a05b81774b87b82466a471 (diff)
Mon Jul 27 00:20:37 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* private.c (_pthread_delete_thread_entry): Destroy the thread entry attribute object before deleting the thread entry itself. * attr.c (pthread_attr_init): Initialise cancel_pending = FALSE. (pthread_attr_setdetachstate): Rename "detached" to "detachedstate". (pthread_attr_getdetachstate): Ditto. * exit.c (_pthread_exit): Fix incorrect check for detachedstate. * implement.h (_pthread_call_t): Remove env member.
Diffstat (limited to 'private.c')
-rw-r--r--private.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/private.c b/private.c
index cee84e9..8424277 100644
--- a/private.c
+++ b/private.c
@@ -109,8 +109,9 @@ _pthread_delete_thread_entry(_pthread_threads_thread_t * entry)
if (entry->thread != NULL)
{
+ pthread_attr_destroy(&(entry->attr));
entry->thread = NULL;
-
+
if (_pthread_threads_count > 0)
{
_pthread_threads_count--;