From owner-cvs-all Sun May 20 16: 8:38 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 03B9A37B422; Sun, 20 May 2001 16:08:34 -0700 (PDT) (envelope-from jasone@FreeBSD.org) Received: (from jasone@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4KN8XU91916; Sun, 20 May 2001 16:08:33 -0700 (PDT) (envelope-from jasone) Message-Id: <200105202308.f4KN8XU91916@freefall.freebsd.org> From: Jason Evans Date: Sun, 20 May 2001 16:08:33 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc_r/uthread pthread_private.h uthread_acl_aclcheck_fd.c uthread_cancel.c uthread_create.c uthread_detach.c uthread_exit.c uthread_init.c uthread_join.c uthread_resume_np.c uthread_sig.c uthread_suspend_np.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jasone 2001/05/20 16:08:33 PDT Modified files: lib/libc_r/uthread pthread_private.h uthread_acl_aclcheck_fd.c uthread_cancel.c uthread_create.c uthread_detach.c uthread_exit.c uthread_init.c uthread_join.c uthread_resume_np.c uthread_sig.c uthread_suspend_np.c Log: Instead of using a join queue for each thread, use a single pointer to keep track of a joiner. POSIX only supports a single joiner, so this simplification is acceptable. At the same time, make sure to mark a joined thread as detached so that its resources can be freed. Reviewed by: deischen PR: 24345 Revision Changes Path 1.57 +17 -18 src/lib/libc_r/uthread/pthread_private.h 1.3 +2 -2 src/lib/libc_r/uthread/uthread_acl_aclcheck_fd.c 1.8 +4 -2 src/lib/libc_r/uthread/uthread_cancel.c 1.30 +3 -3 src/lib/libc_r/uthread/uthread_create.c 1.16 +10 -10 src/lib/libc_r/uthread/uthread_detach.c 1.23 +31 -22 src/lib/libc_r/uthread/uthread_exit.c 1.32 +3 -3 src/lib/libc_r/uthread/uthread_init.c 1.17 +34 -84 src/lib/libc_r/uthread/uthread_join.c 1.12 +5 -1 src/lib/libc_r/uthread/uthread_resume_np.c 1.37 +2 -10 src/lib/libc_r/uthread/uthread_sig.c 1.13 +7 -2 src/lib/libc_r/uthread/uthread_suspend_np.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message