Jul-02-2017, 10:18 AM
The major danger, and difficult to find is when a global is changed in a thread,
while that same global is being used in another thread, and of course becomes more
complicated if used by more than two threads.
So much better to pass the value so the scope is protected.
while that same global is being used in another thread, and of course becomes more
complicated if used by more than two threads.
So much better to pass the value so the scope is protected.