View Single Post
  #11   Spotlight this post!  
Unread 02-12-2015, 11:33 PM
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,168
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Quote:
Originally Posted by pensono View Post
As long as you only have one writer thread, you won't run into any problems.
That depends on the variable. Try to manipulate a linked list without mutual exclusion and you are toast. Using a global double on a 32-bit machine might cause you trouble. If the global variable is simply an integer or a float and there is only one writer you should be ok.
__________________
Fast, cheap or working - pick any two!

Last edited by wireties : 02-12-2015 at 11:38 PM.
Reply With Quote