]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Synchronization.c
Split out Synchronization Library from Base Library
[mirror_edk2.git] / MdePkg / Library / BaseLib / Synchronization.c
index 1a95026a794483984c3074cfd7436199de1a801e..08f33e469a9d97815dccd8c9868c59155c8159d3 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Implementation of synchronization functions.\r
 \r
-  Copyright (c) 2006, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
   All rights reserved. This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -55,13 +55,13 @@ GetSpinLockProperties (
   @param  SpinLock  A pointer to the spin lock to initialize to the released\r
                     state.\r
 \r
-  @return SpinLock initialized in release state.\r
+  @return SpinLock in release state.\r
 \r
 **/\r
 SPIN_LOCK *\r
 EFIAPI\r
 InitializeSpinLock (\r
-  OUT     SPIN_LOCK                 *SpinLock\r
+  OUT      SPIN_LOCK                 *SpinLock\r
   )\r
 {\r
   ASSERT (SpinLock != NULL);\r
@@ -86,7 +86,7 @@ InitializeSpinLock (
 \r
   @param  SpinLock  A pointer to the spin lock to place in the acquired state.\r
 \r
-  @return SpinLock aquired lock.\r
+  @return SpinLock acquired lock.\r
 \r
 **/\r
 SPIN_LOCK *\r
@@ -206,7 +206,7 @@ AcquireSpinLockOrFail (
 \r
   @param  SpinLock  A pointer to the spin lock to release.\r
 \r
-  @return SpinLock\r
+  @return SpinLock released lock.\r
 \r
 **/\r
 SPIN_LOCK *\r
@@ -280,9 +280,9 @@ InterlockedDecrement (
   Performs an atomic compare exchange operation on a 32-bit unsigned integer.\r
 \r
   Performs an atomic compare exchange operation on the 32-bit unsigned integer\r
-  specified by Value.  If Value is equal to CompareValue, then Value is set to \r
+  specified by Value.  If Value is equal to CompareValue, then Value is set to\r
   ExchangeValue and CompareValue is returned.  If Value is not equal to CompareValue,\r
-  then Value is returned.  The compare exchange operation must be performed using \r
+  then Value is returned.  The compare exchange operation must be performed using\r
   MP safe mechanisms.\r
 \r
   If Value is NULL, then ASSERT().\r
@@ -310,9 +310,9 @@ InterlockedCompareExchange32 (
 /**\r
   Performs an atomic compare exchange operation on a 64-bit unsigned integer.\r
 \r
-  Performs an atomic compare exchange operation on the 64-bit unsigned integer specified \r
-  by Value.  If Value is equal to CompareValue, then Value is set to ExchangeValue and \r
-  CompareValue is returned.  If Value is not equal to CompareValue, then Value is returned. \r
+  Performs an atomic compare exchange operation on the 64-bit unsigned integer specified\r
+  by Value.  If Value is equal to CompareValue, then Value is set to ExchangeValue and\r
+  CompareValue is returned.  If Value is not equal to CompareValue, then Value is returned.\r
   The compare exchange operation must be performed using MP safe mechanisms.\r
 \r
   If Value is NULL, then ASSERT().\r
@@ -352,9 +352,8 @@ InterlockedCompareExchange64 (
                         operation.\r
   @param  CompareValue  Pointer value used in compare operation.\r
   @param  ExchangeValue Pointer value used in exchange operation.\r
-  \r
-  @return The original *Value before exchange.\r
 \r
+  @return The original *Value before exchange.\r
 **/\r
 VOID *\r
 EFIAPI\r