InterlockedPushListSListEx function

Inserts a singly-linked list at the front of another singly linked list. Access to the lists is synchronized on a multiprocessor system. This version of the method does not use the __fastcall calling convention.

Syntax

PSLIST_ENTRY InterlockedPushListSListEx(
  PSLIST_HEADER ListHead,
  PSLIST_ENTRY  List,
  PSLIST_ENTRY  ListEnd,
  ULONG         Count
);

Parameters

ListHead

Pointer to an SLIST_HEADER structure that represents the head of a singly linked list. The list specified by the List and ListEnd parameters is inserted at the front of this list.

List

Pointer to an SLIST_ENTRY structure that represents the first item in the list to be inserted.

ListEnd

Pointer to an SLIST_ENTRY structure that represents the last item in the list to be inserted.

Count

The number of items in the list to be inserted.

Return Value

The return value is the previous first item in the list specified by the ListHead parameter. If the list was previously empty, the return value is NULL.

Remarks

All list items must be aligned on a MEMORY_ALLOCATION_ALIGNMENT boundary; otherwise, this function will behave unpredictably. See _aligned_malloc.

Requirements

   
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header interlockedapi.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll

See Also

Interlocked Singly Linked Lists

InterlockedFlushSList

InterlockedPopEntrySList

InterlockedPushEntrySList

SLIST_ENTRY

Using Singly Linked Lists