Go to Post We really are nerds, aren't we? - Eria4044 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 21-04-2012, 22:06
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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 14:04.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi