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 ...
David Xu
davidxu at FreeBSD.org
Mon Dec 8 18:20:59 PST 2003
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
More information about the cvs-src
mailing list