View Single Post
  #3   Spotlight this post!  
Unread 18-03-2015, 18:25
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,044
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Using a separate thread for driving motors?

Quote:
Originally Posted by Jefferson View Post
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 View Post
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.
Reply With Quote