WaitForThreadpoolTimerCallbacks

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

Syntax

void WaitForThreadpoolTimerCallbacks(
         PTP_TIMER pti,
         BOOL fCancelPendingCallbacks
)  

Parameters

pti
Type: PTP_TIMER 

[in, out] A TP_TIMER structure that defines the timer object. The CreateThreadpoolTimer function returns the TP_TIMER 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.