> > #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
