This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: kernel/current/tests/klock failure
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Gary Thomas <gary at mlbassoc dot com>
- Cc: Hans Rosenfeld <rosenfeld at grumpf dot hope-2000 dot org>, ecos-patches at ecos dot sourceware dot org
- Date: Mon, 11 Jun 2007 14:53:29 +0200
- Subject: Re: kernel/current/tests/klock failure
- References: <20070610213039.GA26064@grumpf.hope-2000.org> <466D3E0B.60504@mlbassoc.com>
> > #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