LONG
InterlockedIncrement(
IN PLONG Addend
);
Increments a caller supplied variable of type LONG as an atomic operation.
InterlockedIncrement returns the incremented value.
This routine should be used in place of the previous ExInterlockedIncrementLong. The new routine is more efficient and faster. It is implemented inline by the compiler when appropriate and possible. It does not require a spin lock and can therefore be safely used on pageable data.
The InterlockedIncrement routine is atomic only with respect to other InterlockedXxxxxx calls.
Callers of InterlockedIncrement run at any IRQL.
InterlockedDecrement, InterlockedExchange, ExInterlockedAddLargeInteger, ExInterlockedAddUlong