Share via


Função TpSetCallbackThreadpool (winnt.h)

Atribui um pool de threads a um ambiente de retorno de chamada.

Sintaxe

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

Parâmetros

[in, out] CallbackEnviron

Uma estrutura TP_CALLBACK_ENVIRON que define o ambiente de retorno de chamada. A função TpInitializeCallbackEnviron retorna essa estrutura.

[in] Pool

Uma estrutura TP_POOL que define um pool de threads. A função CreateThreadpool retorna essa estrutura.

Retornar valor

Nenhum

Comentários

Se você não especificar um pool de threads, o pool de threads global será usado.

Essa função é implementada como uma função embutida.

Requisitos

Requisito Valor
Plataforma de Destino Windows
Cabeçalho winnt.h

Confira também

TpDestroyCallbackEnviron

TpInitializeCallbackEnviron

TpSetCallbackActivationContext

TpSetCallbackCleanupGroup

TpSetCallbackFinalizationCallback

TpSetCallbackLongFunction

TpSetCallbackNoActivationContext

TpSetCallbackPersistent

TpSetCallbackPriority

TpSetCallbackRaceWithDll