This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: kernel/current/tests/klock failure


> >  #else
> >        cyg_mbox_put( mbh, (void *)0xAAAAAAAA );
> >  #endif
> > +      while( thread0_state < 10 ) cyg_thread_yield();
> >        thread1_state = 10;
> 
> Why the [seemingly arbitrary] 10 times to yield?  Shouldn't one be
> sufficient?

Hi Gary. 

Look again. It is not a counter. It is a state variable indicating the
state of the other thread.

      Andrew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]