Skip to content

Latest commit

 

History

History
88 lines (67 loc) · 3.08 KB

ns-resapi-clus_worker.md

File metadata and controls

88 lines (67 loc) · 3.08 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:resapi.CLUS_WORKER
CLUS_WORKER (resapi.h)
Contains information about a worker thread.
*PCLUS_WORKER
CLUS_WORKER
CLUS_WORKER structure [Failover Cluster]
PCLUS_WORKER
PCLUS_WORKER structure pointer [Failover Cluster]
_wolf_clus_worker
mscs.clus_worker
resapi/CLUS_WORKER
resapi/PCLUS_WORKER
mscs\clus_worker.htm
MsCS
559b147f-8e8a-4bc7-94ea-e2042f288b6d
12/05/2018
*PCLUS_WORKER, CLUS_WORKER, CLUS_WORKER structure [Failover Cluster], PCLUS_WORKER, PCLUS_WORKER structure pointer [Failover Cluster], _wolf_clus_worker, mscs.clus_worker, resapi/CLUS_WORKER, resapi/PCLUS_WORKER
resapi.h
Windows
None supported
Windows Server 2008 Enterprise, Windows Server 2008 Datacenter
Windows
CLUS_WORKER, *PCLUS_WORKER
19H1
CLUS_WORKER
resapi/CLUS_WORKER
PCLUS_WORKER
resapi/PCLUS_WORKER
c++
APIRef
kbSyntax
HeaderDef
ResApi.h
CLUS_WORKER

CLUS_WORKER structure

-description

Contains information about a worker thread.

-struct-fields

-field hThread

Handle to the worker thread.

-field Terminate

Flag that indicates whether the thread is to be terminated.

-remarks

A worker thread is a thread that is created to offload work from a main thread so that the main thread is not blocked.

A CLUS_WORKER structure is returned as output from ClusWorkerCreate and passed as input to ClusWorkerCheckTerminate and ClusWorkerTerminate. There is never any reason for an application or resource DLL to alter the members of a CLUS_WORKER structure. This structure should always be treated as read-only.

The Terminate member prevents a potential race condition that can occur if multiple threads call the ClusWorkerTerminate function to end the same worker thread. The first call sets Terminate to TRUE. Subsequent calls return immediately after checking the value of Terminate without waiting for the thread to exit.

-see-also

ClusWorkerCheckTerminate

ClusWorkerCreate

ClusWorkerTerminate