diff options
author | davidxu <davidxu@FreeBSD.org> | 2003-09-14 22:52:16 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2003-09-14 22:52:16 +0000 |
commit | 42c958f29f9d0dec248b88f6129ebbcdbcf23b38 (patch) | |
tree | 9fa26442bf60d7738b0f087191d0aa4a746f2c49 /lib/libkse/thread/thr_stack.c | |
parent | 40d912b4658ac36049c089f1efe2db7d635f9ff8 (diff) | |
download | FreeBSD-src-42c958f29f9d0dec248b88f6129ebbcdbcf23b38.zip FreeBSD-src-42c958f29f9d0dec248b88f6129ebbcdbcf23b38.tar.gz |
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
Diffstat (limited to 'lib/libkse/thread/thr_stack.c')
0 files changed, 0 insertions, 0 deletions