次の方法で共有


InterlockedFlushSList (Compact 2013)

3/28/2014

This function removes all items from a singly linked list.

Syntax

PSLIST_ENTRY WINAPI InterlockedFlushSList(
  PSLIST_HEADER ListHead
);

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.

Return Value

A pointer to the items removed from the list. If the list is empty, the return value is NULL.

Remarks

Important

It is your responsibility to release the memory allocated to the items removed from the list.

Access to the list is synchronized on a multiprocessor system.

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

Requirements

Header

windows.h

Library

coredll.dll

See Also

Reference

SList Functions
Interlocked Singly Linked List Reference