From owner-cvs-all Thu May 23 21:32:33 2002 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 109ED37B403; Thu, 23 May 2002 21:32:29 -0700 (PDT) Received: (from deischen@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4O4WTc77716; Thu, 23 May 2002 21:32:29 -0700 (PDT) (envelope-from deischen) Message-Id: <200205240432.g4O4WTc77716@freefall.freebsd.org> From: Daniel Eischen Date: Thu, 23 May 2002 21:32:28 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc_r/uthread pthread_private.h uthread_cancel.c uthread_cond.c uthread_exit.c uthread_init.c uthread_multi_np.c uthread_mutex.c uthread_priority_queue.c uthread_resume_np.c uthread_sig.c uthread_single_np.c uthread_spinlock.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 deischen 2002/05/23 21:32:28 PDT Modified files: lib/libc_r/uthread pthread_private.h uthread_cancel.c uthread_cond.c uthread_exit.c uthread_init.c uthread_multi_np.c uthread_mutex.c uthread_priority_queue.c uthread_resume_np.c uthread_sig.c uthread_single_np.c uthread_spinlock.c uthread_suspend_np.c Log: Revamp suspend and resume. While I'm here add pthread_suspend_all_np() and pthread_resume_all_np(). These suspend and resume all threads except the current thread, respectively. The existing functions pthread_single_np() and pthread_multi_np(), which formerly had no effect, now exhibit the same behaviour and pthread_suspend_all_np() and pthread_resume_all_np(). These functions have been added mostly for the native java port. Don't allow the uthread kernel pipe to use the same descriptors as stdio. Mostily submitted by Oswald Buddenhagen . Correct some minor style nits. Revision Changes Path 1.71 +4 -27 src/lib/libc_r/uthread/pthread_private.h 1.14 +1 -15 src/lib/libc_r/uthread/uthread_cancel.c 1.33 +5 -17 src/lib/libc_r/uthread/uthread_cond.c 1.26 +2 -16 src/lib/libc_r/uthread/uthread_exit.c 1.41 +21 -7 src/lib/libc_r/uthread/uthread_init.c 1.7 +9 -5 src/lib/libc_r/uthread/uthread_multi_np.c 1.31 +10 -42 src/lib/libc_r/uthread/uthread_mutex.c 1.8 +64 -31 src/lib/libc_r/uthread/uthread_priority_queue.c 1.13 +64 -49 src/lib/libc_r/uthread/uthread_resume_np.c 1.41 +12 -4 src/lib/libc_r/uthread/uthread_sig.c 1.6 +8 -6 src/lib/libc_r/uthread/uthread_single_np.c 1.11 +1 -1 src/lib/libc_r/uthread/uthread_spinlock.c 1.14 +38 -95 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