Share via


InterlockedPopEntrySList (Compact 2013)

3/28/2014

This function removes an item from the front of a singly linked list.

Syntax

PSLIST_ENTRY WINAPI InterlockedPopEntrySList(
  PSLIST_HEADER ListHead
);

Parameters

  • ListHead
    [in, out] Pointer to an SLIST_HEADER structure that represents the head of a singly linked list.

Return Value

Pointer to the item removed from the list. If the list is empty, the return value is NULL.

Remarks

To add items to the list, use the InterlockedPushEntrySList function.

To view a code example that uses the InterlockedPopEntrySList function, see Interlocked Singly Linked List Reference.

Access to the list is synchronized on a multiprocessor system.

Requirements

Header

windows.h

Library

coredll.dll

See Also

Reference

SList Functions
Interlocked Singly Linked List Reference
InterlockedPushEntrySList
InterlockedFlushSList
SLIST_ENTRY