Synchronize Multiple Threads
Posted: Fri Jan 16, 2015 6:13 pm
Synchronize multiple threads, so as to make them all wait until say the system init is complete.
I'm thinking Events, so all the required threads calll chEvtWaitOne( EVENT_MASK(0) ); before the while(1);
Once system init is completed, call chEvtBroadcast( &eventsource ); and the threads waiting will come to life.
Is one to many feasible ?
I'm thinking Events, so all the required threads calll chEvtWaitOne( EVENT_MASK(0) ); before the while(1);
Once system init is completed, call chEvtBroadcast( &eventsource ); and the threads waiting will come to life.
Is one to many feasible ?