View Single Post
  #6   Spotlight this post!  
Unread 25-01-2003, 20:39
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
You have to call _endthread from within the thread you are trying to end. Also, nothing will execute after an _endthread() as it functions very similarly to a "return".

If you want to avoid multi-threading, download RoboCon from my website and look through its source. It uses the built-in timeouts to accomplish a very similar thing to multithreading.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php