Add comments on the definition of SPIN_LOCK_RELEASED & SPIN_LOCK_ACQUIRED
[mirror_edk2.git] / MdePkg / Library / BaseLib / Synchronization.c
index 2254531..59919a7 100644 (file)
 \r
 #include "BaseLibInternals.h"\r
 \r
+//\r
+// SPIN_LOCK_RELEASED & SPIN_LOCK_ACQUIRED should belong to type "SPIN_LOCK".\r
+// Here we use type-case "UINTN" to avoid "volatile" modifier on const integers.\r
+//\r
 #define SPIN_LOCK_RELEASED          ((UINTN) 1)\r
 #define SPIN_LOCK_ACQUIRED          ((UINTN) 2)\r
 \r