|
Re: Using a separate thread for driving motors?
Quote:
Originally Posted by Jefferson
I don't believe separate threads outside the main robot thread can keep the robot alive if the main thread has died.
|
Quote:
Originally Posted by lopsided98
Yes, your [sic] right... in C++, exiting the main thread does cause all other threads to terminate.
|
Jefferson wrote "if the main thread has died", and lopsided98 wrote "exiting the main thread".
So it's not yet clear if you are both saying exactly the same thing. It depends on Jefferson's intended meaning of "died": If the main thread is blocked or busy-waiting for an event that never occurs, it could be considered to have "died" but not "exited".
Last edited by Ether : 18-03-2015 at 18:30.
|