Hi,
I found at "MultithreadingOverview.pdf" NI file this lines at "Thread Safe Variable" chapter:
'If you need to access the thread safe variable from more than one source file, you use the
DeclareThreadSafeVar macro in a .h file to create declarations for the accessor functions.'
I have declared the safe var at a xxx.h file like this:
DeclareThreadSafeVar(int, SAcquire);
The modules (.c) that need to access this variable have the #include "xxx.h" statement, and uses the functions:
InitializeSAcquire (void);
UninitializeSAcquire (void);
*GetPointerToSAcquire (void);
ReleasePointerToSAcquire (void);
SetSAcquire (datatype val);
GetSAcquire (void);
When I build the project the most common error is the next:
"xxx.h" (17
,27) Missing parameter type
And at line 17 (where is declared the safe var), is focused the SAcquire parameter.
Does anybody help me about this? Has anybody extra documentation (number of parameters, usage mode, etc.) about the 'DeclareThreadSafeVar' macro?
Thanks in advance,
Silvia