int CmtDiscardTSV (int variableHandle);
Deallocates a thread safe variable.
You must call this function for every thread safe variable that you created by calling CmtNewTSV.
It is easier to program with the functions provided by the DefineThreadSafeScalarVar, DeclareThreadSafeScalarVar, DefineThreadSafeScalarVar, and DeclareThreadSafeScalarVar macros, which are defined in utility.h.
Input | ||
Name | Type | Description |
variableHandle | integer | The handle you obtained from CmtNewTSV to identify the thread safe variable. |
Name | Type | Description |
CmtStatus | integer | 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. |