Skip to content

Latest commit

 

History

History
108 lines (72 loc) · 3.41 KB

nf-threadpoolapiset-releasesemaphorewhencallbackreturns.md

File metadata and controls

108 lines (72 loc) · 3.41 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:threadpoolapiset.ReleaseSemaphoreWhenCallbackReturns
ReleaseSemaphoreWhenCallbackReturns function (threadpoolapiset.h)
Specifies the semaphore that the thread pool will release when the current callback completes.
ReleaseSemaphoreWhenCallbackReturns
ReleaseSemaphoreWhenCallbackReturns function
base.releasesemaphorewhencallbackreturns
threadpoolapiset/ReleaseSemaphoreWhenCallbackReturns
winbase/ReleaseSemaphoreWhenCallbackReturns
base\releasesemaphorewhencallbackreturns.htm
backup
d5c8d6a0-6bb1-4ecb-aaba-665d81cb3d14
12/05/2018
ReleaseSemaphoreWhenCallbackReturns, ReleaseSemaphoreWhenCallbackReturns function, base.releasesemaphorewhencallbackreturns, threadpoolapiset/ReleaseSemaphoreWhenCallbackReturns, winbase/ReleaseSemaphoreWhenCallbackReturns
threadpoolapiset.h
Windows.h on Windows 7, Windows Server 2008 Windows Server 2008 R2
Windows
Windows Vista [desktop apps \| UWP apps]
Windows Server 2008 [desktop apps \| UWP apps]
Kernel32.lib
Kernel32.dll
Windows
19H1
ReleaseSemaphoreWhenCallbackReturns
threadpoolapiset/ReleaseSemaphoreWhenCallbackReturns
c++
APIRef
kbSyntax
DllExport
Kernel32.dll
API-MS-Win-Core-threadpool-l1-1-0.dll
KernelBase.dll
API-MS-Win-Core-threadpool-l1-2-0.dll
API-MS-Win-DownLevel-Kernel32-l1-1-0.dll
MinKernelBase.dll
ReleaseSemaphoreWhenCallbackReturns

ReleaseSemaphoreWhenCallbackReturns function

-description

Specifies the semaphore that the thread pool will release when the current callback completes.

-parameters

-param pci [in, out]

A pointer to a TP_CALLBACK_INSTANCE structure that defines the callback instance. The pointer is passed to the callback function.

-param sem [in]

A handle to the semaphore.

-param crel [in]

The amount by which to increment the semaphore object's count.

-remarks

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

-see-also

CallbackMayRunLong

DisassociateCurrentThreadFromCallback

FreeLibraryWhenCallbackReturns

LeaveCriticalSectionWhenCallbackReturns

ReleaseMutexWhenCallbackReturns

SetEventWhenCallbackReturns

Thread Pools

TrySubmitThreadpoolCallback