Mercurial > flash_v2
changeset 1031:6b4a1f23fbbb
* src/common/kapi.cxx (cyg_thread_get_next): Passing a *current
pointer as NULL is how you start the walk of the linked list. So
don't assert on NULL. Reported by Daniel Lidsten.
| author | asl |
|---|---|
| date | Tue, 20 May 2003 08:56:42 +0000 |
| parents | 512f2f50d2d0 |
| children | f5fa0e095f5e |
| files | packages/kernel/current/ChangeLog packages/kernel/current/src/common/kapi.cxx |
| diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/kernel/current/ChangeLog +++ b/packages/kernel/current/ChangeLog @@ -1,3 +1,9 @@ +2003-05-20 Andrew Lunn <andrew.lunn@ascom.ch> + + * src/common/kapi.cxx (cyg_thread_get_next): Passing a *current + pointer as NULL if how you start the walk of the linked list. So + don't assert on NULL. Reported by Daniel Lidsten. + 2003-05-05 Gary Thomas <gary@mlbassoc.com> * tests/tm_basic.cxx: Support new option controlling number of times
--- a/packages/kernel/current/src/common/kapi.cxx +++ b/packages/kernel/current/src/common/kapi.cxx @@ -331,7 +331,7 @@ cyg_bool_t cyg_thread_get_next( cyg_hand Cyg_Scheduler::lock(); Cyg_Thread *thread = (Cyg_Thread *)*current; - CYG_ASSERT_CLASSC( thread ); + CYG_ASSERT_ZERO_OR_CLASSC( thread ); if( *current == 0 ) { thread = Cyg_Thread::get_list_head();
