LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

CmtUninstallThreadPoolCallback

CmtUninstallThreadPoolCallback

int CmtUninstallThreadPoolCallback (CmtThreadPoolHandle poolHandle, CmtThreadPoolCallbackID callbackID);

Purpose

Uninstalls a callback that you registered with CmtInstallThreadPoolCallback.

You are not required to uninstall callbacks before discarding a thread pool.

If the callback ID was returned from a CmtInstallThreadPoolCallback call that specified more than one event, the callback is uninstalled for all of the specified events.

Parameters

Input
Name Type Description
poolHandle CmtThreadPoolHandle The handle you obtained from CmtNewThreadPool to identify the thread pool.

Do not pass DEFAULT_THREAD_POOL_HANDLE to this function.
callbackID CmtThreadPoolCallbackID The callbackID that you obtained from CmtInstallThreadPoolCallback.

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?