question about ITRON rsm_tsk function

Yu Chen chyyuu at gmail.com
Thu Apr 12 16:00:55 UTC 2007


hi,
  My student Liu Liu  finded a "MAYBE" little problem in
\cpukit\itron\src\rsm_tsk.c.
There are some lines in function  rsm_tsk:
......
if ( ! _States_Is_suspended(the_thread->current_state) )
        _ITRON_return_errorno( E_OK );
......

My student and I think

_ITRON_return_errorno(E_OBJ,);

maybe better.  Because it is a error when a itron task want to resume
a non-suspended itron task.

Anyone 's options are welcome!
-- 
Best Regards
==============================================
Chen Yu
Laboratory of Pervasive Computing,
Dept. of Computer Science and Technology
Tsinghua University, Beijing 100084, P.R. China
Tel: +86 10 6278 4141 ext. 801 (Office)
E-Mail: mailto:yuchen at tsinghua.edu.cn
Web-page: http://media.cs.tsinghua.edu.cn/cn/cheny
==============================================



More information about the users mailing list