Mercurial > ecos-v3_0-branch
diff packages/kernel/current/src/common/thread.cxx @ 210:d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
| author | jlarmour |
|---|---|
| date | Thu, 23 May 2002 22:59:51 +0000 |
| parents | e0c0827131d1 |
| children | a65a4055f146 |
line wrap: on
line diff
--- a/packages/kernel/current/src/common/thread.cxx +++ b/packages/kernel/current/src/common/thread.cxx @@ -34,7 +34,7 @@ // this file might be covered by the GNU General Public License. // // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc. -// at http://sources.redhat.com/ecos/ecos-license +// at http://sources.redhat.com/ecos/ecos-license/ // ------------------------------------------- //####ECOSGPLCOPYRIGHTEND#### //========================================================================== @@ -752,17 +752,13 @@ Cyg_Thread::exit() #ifdef CYGPKG_KERNEL_THREADS_DESTRUCTORS cyg_ucount16 i; - Cyg_Scheduler::lock(); for (i=0; i<CYGNUM_KERNEL_THREADS_DESTRUCTORS; i++) { if (NULL != self->destructors[i].fn) { destructor_fn fn = self->destructors[i].fn; CYG_ADDRWORD data = self->destructors[i].data; - Cyg_Scheduler::unlock(); fn(data); - Cyg_Scheduler::lock(); } } - Cyg_Scheduler::unlock(); #endif #ifdef CYGDBG_KERNEL_THREADS_STACK_MEASUREMENT_VERBOSE_EXIT diag_printf( "Stack usage for thread %08x: %d\n", self,
