Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TpSetCallbackThreadpool function

Assigns a thread pool to a callback environment.

Syntax


VOID FORCEINLINE TpSetCallbackThreadpool(
  _Inout_ PTP_CALLBACK_ENVIRON CallbackEnviron,
  _In_    PTP_POOL             Pool
);

Parameters

CallbackEnviron [in, out]

A TP_CALLBACK_ENVIRON structure that defines the callback environment. The TpInitializeCallbackEnviron function returns this structure.

Pool [in]

A TP_POOL structure that defines a thread pool. The CreateThreadpool function returns this structure.

Return value

This function does not return a value.

Remarks

If you do not specify a thread pool, the global thread pool is used.

This function is implemented as an inline function.

Requirements

Header

Winnt.h

See also

TpInitializeCallbackEnviron
TpDestroyCallbackEnviron
TpSetCallbackActivationContext
TpSetCallbackCleanupGroup
TpSetCallbackFinalizationCallback
TpSetCallbackLongFunction
TpSetCallbackNoActivationContext
TpSetCallbackPersistent
TpSetCallbackPriority
TpSetCallbackRaceWithDll

 

 

Show:
© 2017 Microsoft