Implement RtlInterlockedCompareExchangePointer() and RtlInterlockedDecrementLongPtr() atomic routines

This commit is contained in:
2023-03-17 18:06:53 +01:00
parent 33903c4374
commit 1f8026db2f
3 changed files with 63 additions and 0 deletions

View File

@@ -230,6 +230,16 @@ VOID
RtlInsertTailList(IN OUT PLIST_ENTRY ListHead,
IN PLIST_ENTRY Entry);
XTFASTCALL
PVOID
RtlInterlockedCompareExchangePointer(IN VOLATILE PVOID *Destination,
IN PVOID Comperand,
IN PVOID Exchange);
XTFASTCALL
LONG_PTR
RtlInterlockedDecrementLongPtr(IN VOLATILE PLONG_PTR Addend);
XTCDECL
BOOLEAN
RtlListEmpty(PLIST_ENTRY ListHead);