]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseSynchronizationLib/InterlockedIncrementMsc.c
2 InterLockedIncrement function
4 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
10 Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics.
13 long _InterlockedIncrement(
17 #pragma intrinsic(_InterlockedIncrement)
20 Performs an atomic increment of an 32-bit unsigned integer.
22 Performs an atomic increment of the 32-bit unsigned integer specified by
23 Value and returns the incremented value. The increment operation must be
24 performed using MP safe mechanisms. The state of the return value is not
25 guaranteed to be MP safe.
27 @param Value A pointer to the 32-bit value to increment.
29 @return The incremented value.
34 InternalSyncIncrement (
35 IN
volatile UINT32
*Value
38 return _InterlockedIncrement ((long *)(Value
));