WaitForThreadpoolWaitCallbacks

Waits for outstanding wait callbacks to complete and optionally cancels pending callbacks that have not yet started to execute.

Syntax

void WaitForThreadpoolWaitCallbacks(
         PTP_WAIT pwa,
         BOOL fCancelPendingCallbacks
)  

Parameters

pwa
Type: PTP_WAIT 

[in, out] A TP_WAIT structure that defines the wait object. The CreateThreadpoolWait function returns the TP_WAIT structure.

fCancelPendingCallbacks
Type: BOOL 

[in] Indicates whether to cancel queued callbacks that have not yet started to execute.

Return value

None.

Requirements

Header: Declared in threadpoolapiset.h.

Library: Use kernelx.lib.