Quote:
Originally Posted by pensono
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 : 12-02-2015 at 23:38.
|