RtlInterlockedPopEntrySList function (winnt.h)

Removes an item from the front of a singly linked list. Access to the list is synchronized on a multiprocessor system.


NTSYSAPI PSLIST_ENTRY RtlInterlockedPopEntrySList(
  [in] PSLIST_HEADER ListHead


[in] ListHead

A pointer to an SLIST_HEADER structure that represents the head of a singly linked list.

Return value

The return value is a pointer to the item removed from the list. If the list is empty, the return value is NULL.


Calls to the InterlockedPopEntrySList function are forwarded to the RtlInterlockedPopEntrySList function. Applications should call InterlockedPopEntrySList instead of calling this function directly.


Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header winnt.h (include Windows.h)
DLL Ntdll.dll

See also

Interlocked Singly Linked Lists