Anybody know how to make this macro work?
I was originally using DefineThreadSafeScalarVar in a single source file and that worked great. The problem is that I need to use those thread safe variables in more than one source file so I went back to the multithreading white paper and it said to use DeclareThreadSafeScalarVar.
Unfortunately, there is zero information on how to use DeclareThreadSafeScalarVar in that paper. It gives plenty of examples for DefineThreadSafeScalarVar but not for the other form. Turns out they take different numbers of parameters, I was able to see that from the utility.h file.
The problem I am having now is that the linker is complaining that none of the accessor functions can be found even though the two source files that use the header are both compiling happily.
I dould move the one function I need the thread safe variables in over to the other file but that would defeat the purpose of trying to keep my common utility functions in one file and my application specific stuff in another.
So does anyone have a handle on this beast?
Any help would be greatly appreciated.
Martin Fredrickson
Test Engineer
Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128