Implement routines for atomically work with linked lists

This commit is contained in:
2023-02-13 22:36:03 +01:00
parent 9e5fb84412
commit 050f24f877
4 changed files with 122 additions and 5 deletions

View File

@@ -57,11 +57,15 @@ typedef struct _SINGLE_LIST_ENTRY
} SINGLE_LIST_ENTRY, *PSINGLE_LIST_ENTRY;
/* Header for a sequenced single linked list union definition */
typedef struct _SINGLE_LIST_HEADER
typedef union _SINGLE_LIST_HEADER
{
SINGLE_LIST_ENTRY Next;
USHORT Depth;
USHORT Sequence;
ULONGLONG Alignment;
struct
{
SINGLE_LIST_ENTRY Next;
USHORT Depth;
USHORT Sequence;
};
} SINGLE_LIST_HEADER, *PSINGLE_LIST_HEADER;
/* 128-bit 16-byte aligned XMM register */