View Single Post
  #3   Spotlight this post!  
Unread 04-21-2012, 10:06 PM
Skinkworks Skinkworks is offline
The guy with the Fez
FRC #1302 (Team Lionheart)
Team Role: Programmer
 
Join Date: Apr 2012
Rookie Year: 2008
Location: Kernel Space, NJ
Posts: 17
Skinkworks is on a distinguished road
Re: Multithreading and locking?

Just use global variables. Don't tell anyone (I know it's bad), but our team does't use any lock/semaphore-type structures, and we've never had a problem. Then again, the data shared between the threads is only a float and a string.
__________________
Yes, I am the same person from the FTC forum.
FTC #248 (2009-2013): Fatal Error, Programmer, Driver, and Builder.
FRC #3142 (2009-2012): Aperture, Build, Design, and Programming Leaders.
FRC #1302 (2012-2013): Lionheart, Build Captain.
ZRHS #89 (2011-2013): Team Kühlschrank, strategist and programmer.
ZRAC #40 (2012): Catcher in the Skye, programmer.
FLL #3149 #15193 (2011-2013): Mentor.
ISR 12: Umptysquatch 6, Designer, and Builder.
FRC #???? (2013-????) Mentor.
FTC #???? (2013-????) Mentor.
FLL #????? (2013-?????) Mentor.
--
11 seasons of FIRST in 6 years. I wish I could've done more.
Reply With Quote