From owner-cvs-all@FreeBSD.ORG Mon Dec 8 18:20:59 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E87616A4CE; Mon, 8 Dec 2003 18:20:59 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBCDA43D09; Mon, 8 Dec 2003 18:20:57 -0800 (PST) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hB92KvXJ038583; Mon, 8 Dec 2003 18:20:57 -0800 (PST) (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hB92Kv8r038582; Mon, 8 Dec 2003 18:20:57 -0800 (PST) (envelope-from davidxu) Message-Id: <200312090220.hB92Kv8r038582@repoman.freebsd.org> From: David Xu Date: Mon, 8 Dec 2003 18:20:57 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libpthread/thread thr_aio_suspend.cthr_cancel.c thr_close.c thr_cond.c thr_creat.c thr_fcntl.c thr_fsync.c thr_join.c thr_kern.c thr_msync.c thr_nanosleep.c thr_open.c thr_pause.c thr_poll.c thr_private.h thr_pselect.c thr_read.c ... X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2003 02:20:59 -0000 davidxu 2003/12/08 18:20:57 PST FreeBSD src repository Modified files: lib/libpthread/thread thr_aio_suspend.c thr_cancel.c thr_close.c thr_cond.c thr_creat.c thr_fcntl.c thr_fsync.c thr_join.c thr_kern.c thr_msync.c thr_nanosleep.c thr_open.c thr_pause.c thr_poll.c thr_private.h thr_pselect.c thr_read.c thr_readv.c thr_select.c thr_sem.c thr_sigsuspend.c thr_sigwait.c thr_sleep.c thr_system.c thr_tcdrain.c thr_wait.c thr_wait4.c thr_waitpid.c thr_write.c thr_writev.c Log: Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename _thr_leave_cancellation_point to _thr_cancel_leave, add a parameter to _thr_cancel_leave to indicate whether cancellation point should be checked, this gives us an option to not check cancallation point if a syscall successfully returns to avoid any leaks, current I have creat(), open() and fcntl(F_DUPFD) to not check cancellation point after they sucessfully returned. Replace some members in structure kse with bit flags to same some memory. Conditionally compile THR_ASSERT to nothing if _PTHREAD_INVARIANTS is not defined. Inline some small functions in thr_cancel.c. Use __predict_false in thr_kern.c for some executed only once code. Reviewd by: deischen Revision Changes Path 1.8 +2 -2 src/lib/libpthread/thread/thr_aio_suspend.c 1.31 +33 -40 src/lib/libpthread/thread/thr_cancel.c 1.17 +2 -2 src/lib/libpthread/thread/thr_close.c 1.51 +4 -4 src/lib/libpthread/thread/thr_cond.c 1.8 +6 -2 src/lib/libpthread/thread/thr_creat.c 1.19 +10 -3 src/lib/libpthread/thread/thr_fcntl.c 1.14 +2 -2 src/lib/libpthread/thread/thr_fsync.c 1.28 +5 -5 src/lib/libpthread/thread/thr_join.c 1.104 +11 -18 src/lib/libpthread/thread/thr_kern.c 1.9 +2 -2 src/lib/libpthread/thread/thr_msync.c 1.24 +2 -2 src/lib/libpthread/thread/thr_nanosleep.c 1.16 +6 -2 src/lib/libpthread/thread/thr_open.c 1.8 +2 -2 src/lib/libpthread/thread/thr_pause.c 1.16 +2 -2 src/lib/libpthread/thread/thr_poll.c 1.107 +25 -14 src/lib/libpthread/thread/thr_private.h 1.5 +2 -2 src/lib/libpthread/thread/thr_pselect.c 1.18 +2 -2 src/lib/libpthread/thread/thr_read.c 1.19 +2 -2 src/lib/libpthread/thread/thr_readv.c 1.26 +2 -2 src/lib/libpthread/thread/thr_select.c 1.13 +2 -2 src/lib/libpthread/thread/thr_sem.c 1.23 +2 -2 src/lib/libpthread/thread/thr_sigsuspend.c 1.34 +6 -6 src/lib/libpthread/thread/thr_sigwait.c 1.8 +2 -2 src/lib/libpthread/thread/thr_sleep.c 1.8 +2 -2 src/lib/libpthread/thread/thr_system.c 1.8 +2 -2 src/lib/libpthread/thread/thr_tcdrain.c 1.8 +2 -2 src/lib/libpthread/thread/thr_wait.c 1.19 +2 -2 src/lib/libpthread/thread/thr_wait4.c 1.8 +2 -2 src/lib/libpthread/thread/thr_waitpid.c 1.24 +2 -2 src/lib/libpthread/thread/thr_write.c 1.24 +2 -2 src/lib/libpthread/thread/thr_writev.c