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.

SetThreadpoolCallbackPool function

Sets the thread pool to be used when generating callbacks.

Syntax


VOID SetThreadpoolCallbackPool(
  _Inout_ PTP_CALLBACK_ENVIRON pcbe,
  _In_    PTP_POOL             ptpp
);

Parameters

pcbe [in, out]

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

ptpp [in]

A TP_POOL structure that defines the 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.

To compile an application that uses this function, define _WIN32_WINNT as 0x0600 or higher.

Examples

For an example, see Using the Thread Pool Functions.

Requirements

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

WinBase.h (include Windows.h)

See also

DestroyThreadpoolEnvironment
InitializeThreadpoolEnvironment
SetThreadpoolCallbackCleanupGroup
SetThreadpoolCallbackLibrary
SetThreadpoolCallbackPriority
SetThreadpoolCallbackRunsLong
Thread Pools

 

 

Show:
© 2017 Microsoft