This is the mail archive of the
ecos-devel@sources.redhat.com
mailing list for the eCos project.
cyg_thread_kill vs SMP
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: eCos developers <ecos-devel at sources dot redhat dot com>
- Date: Sat, 09 Aug 2003 07:29:23 +0100
- Subject: cyg_thread_kill vs SMP
Cyg_Thread::kill() contains:
switch( sleep_reason ) {
case NONE:
// The thread is not sleeping for any reason, it must be
// on a run queue.
// We can safely deschedule and set its state.
if( state == RUNNING ) Cyg_Scheduler::scheduler.rem_thread(this);
state = EXITED;
break;
Isn't this wrong for SMP?
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine