View Single Post
  #1   Spotlight this post!  
Unread 22-01-2009, 21:56
bomber7 bomber7 is offline
Humanoid
FRC #0585
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2007
Location: CA - Tehachapi
Posts: 20
bomber7 is an unknown quantity at this point
Question Multiple threads

I am using Windriver Vxworks, C++.

In the previous controller if I wanted something to happen periodically independent of the rest of the code I could use interupts.

This year as far as I can tell interupts are no longer usable. Instead, it seems that a better solution would be available. If I could start a second independent thread I could use an infinite loop with a Sleep() in it to achieve the same effect. However, it seems the normal C++ method of starting another thread does not work.

It is my understanding that normally you can use "_Fork <functionname>" (without <>) to start a function on another thread. The compiler says that _Fork is undefined, so I'm wondering if anyone has a different solution?
Reply With Quote