From 9ff4d7a4815f0e20f1dc95e9a9e91b55eee7459a Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 4 Aug 1998 08:01:05 +0000 Subject: Tue Aug 4 16:57:58 1998 Ross Johnson * private.c (_pthread_delete_thread): Fix typo. Add missing ';'. * global.c (_pthread_virgins): Change types from pointer to array pointer. (_pthread_reuse): Ditto. (_pthread_win32handle_map): Ditto. (_pthread_threads_mutex_table): Ditto. * implement.h(_pthread_virgins): Change types from pointer to array pointer. (_pthread_reuse): Ditto. (_pthread_win32handle_map): Ditto. (_pthread_threads_mutex_table): Ditto. * private.c (_pthread_delete_thread): Fix "entry" should be "thread". * misc.c (pthread_self): Add extern for _pthread_threadID_TlsIndex. * global.c: Add comment. * misc.c (pthread_once): Fix member -> dereferences. Change _pthread_once_flag to once_control->flag in "if" test. --- private.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'private.c') diff --git a/private.c b/private.c index 454695d..d4d94f0 100644 --- a/private.c +++ b/private.c @@ -126,7 +126,7 @@ _pthread_new_thread(pthread_t * thread) { if (_pthread_virgin_next < PTHREAD_THREADS_MAX) { - new_thread = _pthread_virgin[_pthread_virgin_next++]; + new_thread = (pthread_t) &_pthread_virgins[_pthread_virgin_next++]; } else { @@ -163,15 +163,15 @@ _pthread_delete_thread(_pthread_t * thread) if (thread != NULL && thread->ptstatus == _PTHREAD_EXITED) { - pthread_attr_destroy(&(entry->attr)); + pthread_attr_destroy(&(thread->attr)); thread->win32handle = NULL; - thread_ptstatus = _PTHREAD_REUSE; + thread->ptstatus = _PTHREAD_REUSE; _pthread_reuse[++_pthread_reuse_top] = thread; } else { - return EINVAL + return EINVAL; } return 0; } -- cgit v1.2.3