LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CmtThreadLockHandle, where is defined?

Hi everybody,

 

I get the following error when I try to run my SW:

 

"cvi_thread.h"(95,33) syntax error; found 'identifier' expecting ';'.
"cvi_thread.h"(96,33) syntax error; found 'identifier' expecting ';'.
"cvi_thread.h"(98,33) syntax error; found 'identifier' expecting ';'.

 

these errors refer to:

 

CmtThreadPoolHandle  pool;
CmtThreadLockHandle  lock;
CmtTSQHandle            queueHandle;

 

I have read this post http://digital.ni.com/public.nsf/allkb/6A7825928D19C5318625714C006CEEC7 but I still do not know where is the error.

 

Where are types CmtThreadPoolHandle / CmtThreadLockHandle / CmtTSQHandle defined?

 

Thanks a lot for your help!!!           

 

 

0 Kudos
Message 1 of 3
(3,361 Views)

I cannot test at the moment as I have no CVI install here, but they are possibly defined in utility.h (or some lower level file included in that one), where all functions pertaining to multithreading are defined.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,346 Views)

Confirmed: they are declared in utility.h.

Which version of CVI are you using? The help for CmtNelLock function includes this note which is not presente in the online version and may help you if you are using a version older than CVI2009:

 

Note  In versions of LabWindows/CVI earlier than 2009, this parameter is declared as an integer variable instead of CmtThreadLockHandle. If you need to build your project in earlier versions of LabWindows/CVI, you must include cvi2009compat.h in your project.

 

Since these variables were changed in type while addressing 64-bit architecture, a more detailed note on these data types can be found here



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 3 of 3
(3,341 Views)