TpSetCallbackThreadpool function

Assigns a thread pool to a callback environment.

Syntax

void TpSetCallbackThreadpool(
  PTP_CALLBACK_ENVIRON CallbackEnviron,
  PTP_POOL             Pool
);

Parameters

CallbackEnviron

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

Pool

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

   
Target Platform Windows
Header winnt.h

See Also

TpDestroyCallbackEnviron

TpInitializeCallbackEnviron

TpSetCallbackActivationContext

TpSetCallbackCleanupGroup

TpSetCallbackFinalizationCallback

TpSetCallbackLongFunction

TpSetCallbackNoActivationContext

TpSetCallbackPersistent

TpSetCallbackPriority

TpSetCallbackRaceWithDll