int CmtGetThreadPoolFunctionAttribute (int poolHandle, int threadFunctionID, int attributeID, void *attributeValue);
Obtains the value of a thread function attribute.
Input | ||
Name | Type | Description |
poolHandle | integer | The handle you obtained from CmtNewThreadPool to identify the thread pool. Pass DEFAULT_THREAD_POOL_HANDLE to specify the default thread pool. |
threadFunctionID | integer | The threadFunctionID that you obtained from CmtScheduleThreadPoolFunction or CmtScheduleThreadPoolFunctionAdv. |
attributeID | integer | The ID of a thread function attribute. |
Output | ||
Name | Type | Description |
attributeValue | void * | The current value of the attribute. Pass the address of a variable of the appropriate type for the attribute that you pass in the attributeID parameter. In the function panel, if the attribute currently showing in the Attribute ID ring control has named constants as valid values, you can view a list of values by pressing <Enter> on the control. |
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. |