ClusWorkerTerminate function

Terminates a worker thread. The PCLUSAPI_CLUS_WORKER_TERMINATE type defines a pointer to this function.

Syntax


VOID WINAPI ClusWorkerTerminate(
  _In_ PCLUS_WORKER lpWorker
);

typedef VOID (WINAPI *PCLUSAPI_CLUS_WORKER_TERMINATE)(
    _In_ PCLUS_WORKER lpWorker
);

Parameters

lpWorker [in]

Pointer to a CLUS_WORKER structure describing the thread to terminate.

Return value

This function has no return values.

Remarks

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

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 Enterprise, Windows Server 2008 Datacenter

Header

ResApi.h

Library

ResUtils.lib

DLL

ResUtils.dll

See also

Thread Management Utility Functions
CLUS_WORKER
ClusWorkerCreate
ClusWorkerCheckTerminate
ClusWorkerTerminateEx
ClusWorkersTerminate

 

 

Show: