Hello Giovanni,
Thanks for the reply.
The above is just an example.
My application has to spawn threads after a particular condition is true. The spawn threads themselves then wait for a condition, does a process depending on the condition and then exits. And the process then continues.
Don't ...
Search found 2 matches
- Mon Nov 14, 2016 10:58 am
- Forum: STM32 Support
- Topic: Recommended way to exit and create threads
- Replies: 3
- Views: 2448
- Mon Nov 14, 2016 7:28 am
- Forum: STM32 Support
- Topic: Recommended way to exit and create threads
- Replies: 3
- Views: 2448
Recommended way to exit and create threads
Hello all,
I have 2 threads which exit themselves and are created by the other, like so:
static THD_FUNCTION(Thread6, arg)
{
(void)arg;
chRegSetThreadName("6");
/*
* Wait for some error condition to occur
*/
chThdCreateStatic(waThread3, sizeof(waThread3), 62, Thread3, NULL ...
I have 2 threads which exit themselves and are created by the other, like so:
static THD_FUNCTION(Thread6, arg)
{
(void)arg;
chRegSetThreadName("6");
/*
* Wait for some error condition to occur
*/
chThdCreateStatic(waThread3, sizeof(waThread3), 62, Thread3, NULL ...