次の方法で共有


InterlockedPushEntrySList (Compact 2013)

3/28/2014

This function inserts an item at the front of a singly linked list.

Syntax

PSLIST_ENTRY WINAPI InterlockedPushEntrySList(
  PSLIST_HEADER ListHead,
  PSLIST_ENTRY ListEntry
);

Parameters

  • ListHead
    [in, out] Pointer to an SLIST_HEADER structure that represents the head of a singly linked list. The SLIST_HEADER structure is for system use only.
  • ListEntry
    [in, out] Pointer to an SLIST_ENTRY structure that represents an item in a singly linked list.

Return Value

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

Remarks

To remove items from the list, use the InterlockedPopEntrySList function.

To view a code example that uses the InterlockedPushEntrySList 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
InterlockedPopEntrySList
SLIST_ENTRY