ClusWorkerTerminate function (resapi.h)
Terminates a worker thread. The PCLUSAPI_CLUS_WORKER_TERMINATE type defines a pointer to this function.
Syntax
void ClusWorkerTerminate(
PCLUS_WORKER lpWorker
);
Parameters
lpWorker
Pointer to a CLUS_WORKER structure describing the thread to terminate.
Return value
None
Remarks
This function has no return values.
The ClusWorkerTerminate utility function checks the hThread and Terminate members of the CLUS_WORKER structure pointed to by lpWorker. If hThread is not NULL and Terminate is set to FALSE, indicating that this is your first call to ClusWorkerTerminate, the function waits for the thread to exit before returning. Otherwise, if you have called ClusWorkerTerminate previously, indicated by Terminate being set to TRUE, the function may return before the thread has terminated.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 Build 20348 |
Minimum supported server | Windows 10 Build 20348 |
Header | resapi.h |
See also
CLUS_WORKER ClusWorkerCreate ClusWorkerCheckTerminate ClusWorkerTerminateEx ClusWorkersTerminate