restart thread
Posted: Sat Sep 20, 2014 11:15 pm
Is this the proper way to restart a thread? It is not working for me
Code: Select all
chThdTerminate(SequencerThread_tp);
chThdWait(SequencerThread_tp);
SequencerThread_tp = chThdCreateStatic(waSequencerThread, sizeof(waSequencerThread),
NORMALPRIO + 9, SequencerThread, seq_events);