Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about static (+multithreading)

Sample program for multithreading:
cvidir\samples\utility\Threading\ThreadSafeVar\IncrementValue.prj
Why all of global variables and functions are static ?


_________
regards
Frog
0 Kudos
Message 1 of 2
(3,119 Views)
This is a CVI question and should be posted to the LabWindows/CVI forum instead. Static flags are used to tell the compiler that these global declarations are not used outside this code module (C file). It's good programming practice to declare global variables only used in one module as static.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(3,119 Views)