LabWindows/CVI

Content Type
Programming Language
Current manual

CmtDiscardTSV

int CmtDiscardTSV (CmtTSVHandle variableHandle);

Purpose

Deallocates a thread safe variable.

You must call this function for every thread safe variable that you created by calling CmtNewTSV.

It is difficult to program with this function directly. It is easier to program with the functions provided by the DefineThreadSafeScalarVar, DefineThreadSafeArrayVar, DeclareThreadSafeScalarVar, and DeclareThreadSafeArrayVar macros, which are defined in utility.h.

Parameters

Input
Name Type Description
variableHandle CmtTSVHandle The handle you obtained from CmtNewTSV to identify the thread safe variable.

Return Value

Name Type Description
cmtStatus int The CmtStatus code that the function call returns. This function returns 0 to indicate success and negative values to indicate failure. Pass the CmtStatus code to CmtGetErrorMessage to get a description of the error code.

Additional Information

Library: Utility Library

Include file: utility.h

LabWindows/CVI compatibility: LabWindows/CVI 5.5 and later

Was this information helpful?

Log in to get a better experience

Help us improve your future ni.com experience.

Did you find the documentation you were looking for?

Submit