To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.nxtOpen lugnet.robotics.nxt in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / NXT / 438
437  |  439
Subject: 
Re: Spawning threads in NBC
Newsgroups: 
lugnet.robotics.nxt
Date: 
Mon, 29 Jan 2007 14:12:41 GMT
Viewed: 
12450 times
  
Let me know what you think.  And thank David for his persistence. :-)

Is there any plan to create a way to stopped threads that have been spawned in
this way (similar to NQC)?



Message has 2 Replies:
  Re: Spawning threads in NBC
 
(...) Unfortunately, there really isn't any way to implement a mechanism for stopping a thread from another thread (without firmware modifications). John Hansen (18 years ago, 29-Jan-07, to lugnet.robotics.nxt)
  Re: Spawning threads in NBC
 
(...) I stop a thread the manual way: #define STOP_OTHER_THREAD() \ set bOtherThreadEnable, FALSE dseg segment bOtherThreadEnable byte TRUE ends thread main start OtherThread // John's great invention //... STOP_OTHER_THREAD() // ... endt thread (...) (18 years ago, 30-Jan-07, to lugnet.robotics.nxt)

Message is in Reply To:
  Spawning threads in NBC
 
Thanks to David Wallace's very thought-provoking (although somewhat distracting) emails, I think I can put together a simple pseudo NBC opcode which will let you start a thread in a manner very similar to how it works in NQC. It requires a couple (...) (18 years ago, 28-Jan-07, to lugnet.robotics.nxt)

10 Messages in This Thread:





Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR