LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

unreferenced function calls in CVI example

While looking at some example codes from CVI 8.0.1, I found there are functions that are neither defined in the example nor are part of the CVI built-in functions. For examples, in "Samples\utility\Threading\ThreadSafeVar\IncrementValue.c", the InitApp() calls
        InitilizeTsvGetSetAccess(),
        InitializeTsvPtrAccess(),
        SetTsvGetSetAccess(0), and
        SetTsvPtrAccess(0).
None of these functions are defined anywhere in the source and none of these can be found in the CVI Help. I think they have something to do with setting up the thread-safe variable, but I need some documentation. Does anyone know where to find these references? Thanks.
0 Kudos
Message 1 of 3
(3,324 Views)
If you look inside utility.h around the DefineThreadSafeScalarVar macro you should find some tricky code that accounts for the names you mention.
 
JR
Message 2 of 3
(3,318 Views)
Thanks for pointing this out. Seem like they could at least put a comment in the example.
0 Kudos
Message 3 of 3
(3,315 Views)