TpSetCallbackThreadpool function (winnt.h)

Assigns a thread pool to a callback environment.

Syntax

void TpSetCallbackThreadpool(
  [in, out] PTP_CALLBACK_ENVIRON CallbackEnviron,
  [in]      PTP_POOL             Pool
);

Parameters

[in, out] CallbackEnviron

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

[in] Pool

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

Return value

None

Remarks

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

This function is implemented as an inline function.

Requirements

Requirement Value
Target Platform Windows
Header winnt.h

See also

TpDestroyCallbackEnviron

TpInitializeCallbackEnviron

TpSetCallbackActivationContext

TpSetCallbackCleanupGroup

TpSetCallbackFinalizationCallback

TpSetCallbackLongFunction

TpSetCallbackNoActivationContext

TpSetCallbackPersistent

TpSetCallbackPriority

TpSetCallbackRaceWithDll