cvs commit: src/lib/libpthread/thread thr_create.c thr_exit.c
thr_kern.c thr_private.h
David Xu
davidxu at FreeBSD.org
Sun Sep 14 15:52:21 PDT 2003
davidxu 2003/09/14 15:52:17 PDT
FreeBSD src repository
Modified files:
lib/libpthread/thread thr_create.c thr_exit.c thr_kern.c
thr_private.h
Log:
1. Allocating and freeing lock related resource in _thr_alloc and _thr_free
to avoid potential memory leak, also fix a bug in pthread_create, contention
scope should be inherited when PTHREAD_INHERIT_SCHED is set, and also check
right field for PTHREAD_INHERIT_SCHED, scheduling inherit flag is in sched_inherit.
2. Execute hooks registered by atexit() on thread stack but not on scheduler
stack.
3. Simplify some code in _kse_single_thread by calling xxx_destroy functions.
Reviewed by: deischen
Revision Changes Path
1.51 +20 -18 src/lib/libpthread/thread/thr_create.c
1.35 +21 -3 src/lib/libpthread/thread/thr_exit.c
1.94 +44 -73 src/lib/libpthread/thread/thr_kern.c
1.102 +2 -0 src/lib/libpthread/thread/thr_private.h
More information about the cvs-src
mailing list