Skip to content

Latest commit

 

History

History
132 lines (95 loc) · 3.14 KB

nf-resapi-clusworkersterminate.md

File metadata and controls

132 lines (95 loc) · 3.14 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
NF:resapi.ClusWorkersTerminate
ClusWorkersTerminate function (resapi.h)
Waits for multiple worker threads to terminate up to the specified timeout.
ClusWorkersTerminate
ClusWorkersTerminate function [Failover Cluster]
mscs.clusworkersterminate
resapi/ClusWorkersTerminate
mscs\clusworkersterminate.htm
MsCS
af9bcdcf-ca92-438b-94f2-f0e7529952fb
12/05/2018
ClusWorkersTerminate, ClusWorkersTerminate function [Failover Cluster], mscs.clusworkersterminate, resapi/ClusWorkersTerminate
resapi.h
Windows
None supported
Windows Server 2016
ResUtils.lib
ResUtils.dll
Windows
19H1
ClusWorkersTerminate
resapi/ClusWorkersTerminate
c++
APIRef
kbSyntax
DllExport
ResUtils.dll
ClusWorkersTerminate

ClusWorkersTerminate function

-description

Waits for multiple worker threads to terminate up to the specified timeout. This function can signal the thread to terminate before wait starts, or just wait passively if specified.

-parameters

-param ClusWorkers [in, out]

Pointer to an array of CLUS_WORKER structures describing the threads to terminate.

-param ClusWorkersCount [in]

The number of structures in the ClusWorkers parameter.

-param TimeoutInMilliseconds [in]

The timeout in milliseconds.

-param WaitOnly [in]

If set TRUE, the function will wait for up to specified timeout without signaling the thread to terminate; otherwise it will signal the thread to terminate before waiting for the thread.

-returns

Return code Description
ERROR_SUCCESS
All worker threads are terminated.
WAIT_TIMEOUT
At least one worker thread is not terminated within the specified timeout.
 

Returns a system error code on failure.

-see-also

CLUS_WORKER

ClusWorkerCheckTerminate

ClusWorkerCreate

ClusWorkerTerminate

ClusWorkerTerminateEx

Thread Management Utility Functions