K 10 svn:author V 7 davidxu K 8 svn:date V 27 2003-09-14T22:52:16.000000Z K 7 svn:log V 510 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 END