01-28-2013, 05:44 AM
Use global variable. Declaration can be like
int+ g_globalVariable
Declare where it is used first time. Can declare same variable in many places.
If the variable will be used in single thread, instead use thread variable.
int- t_threadVariable
Declare in all functions where used.
int+ g_globalVariable
Declare where it is used first time. Can declare same variable in many places.
If the variable will be used in single thread, instead use thread variable.
int- t_threadVariable
Declare in all functions where used.
