Changeset 51571 in vbox
- Timestamp:
- Jun 7, 2014 2:28:43 AM (11 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/generic/spinlock-generic.cpp
r48935 r51571 63 63 typedef struct RTSPINLOCKINTERNAL 64 64 { 65 /** Spinlock magic value (RTSPINLOCK_ MAGIC). */65 /** Spinlock magic value (RTSPINLOCK_GEN_MAGIC). */ 66 66 uint32_t u32Magic; 67 67 /** The spinlock creation flags. */ … … 89 89 * Initialize and return. 90 90 */ 91 pThis->u32Magic = RTSPINLOCK_ MAGIC;91 pThis->u32Magic = RTSPINLOCK_GEN_MAGIC; 92 92 pThis->fFlags = fFlags; 93 93 pThis->fIntSaved = 0; … … 108 108 if (!pThis) 109 109 return VERR_INVALID_PARAMETER; 110 if (pThis->u32Magic != RTSPINLOCK_ MAGIC)110 if (pThis->u32Magic != RTSPINLOCK_GEN_MAGIC) 111 111 { 112 112 AssertMsgFailed(("Invalid spinlock %p magic=%#x\n", pThis, pThis->u32Magic)); … … 124 124 { 125 125 PRTSPINLOCKINTERNAL pThis = (PRTSPINLOCKINTERNAL)Spinlock; 126 AssertMsg(pThis && pThis->u32Magic == RTSPINLOCK_ MAGIC,126 AssertMsg(pThis && pThis->u32Magic == RTSPINLOCK_GEN_MAGIC, 127 127 ("pThis=%p u32Magic=%08x\n", pThis, pThis ? (int)pThis->u32Magic : 0)); 128 128 … … 200 200 { 201 201 PRTSPINLOCKINTERNAL pThis = (PRTSPINLOCKINTERNAL)Spinlock; 202 AssertMsg(pThis && pThis->u32Magic == RTSPINLOCK_ MAGIC,202 AssertMsg(pThis && pThis->u32Magic == RTSPINLOCK_GEN_MAGIC, 203 203 ("pThis=%p u32Magic=%08x\n", pThis, pThis ? (int)pThis->u32Magic : 0)); 204 204 -
trunk/src/VBox/Runtime/include/internal/magics.h
r47199 r51571 171 171 /** Magic value for RTSPINLOCKINTERNAL::u32Magic. (Terry Pratchett) */ 172 172 #define RTSPINLOCK_MAGIC UINT32_C(0x19480428) 173 /** Magic value for generic RTSPINLOCKINTERNAL::u32Magic (Georges Prosper Remi). */ 174 #define RTSPINLOCK_GEN_MAGIC UINT32_C(0x10970522) 173 175 /** Magic value for RTSTRCACHE::u32Magic. (Sir Arthur Charles Clarke) */ 174 176 #define RTSTRCACHE_MAGIC UINT32_C(0x19171216)
Note:
See TracChangeset
for help on using the changeset viewer.