- Timestamp:
- Oct 10, 2007 4:18:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/semeventmulti-r0drv-linux.c
r5226 r5228 39 39 typedef struct RTSEMEVENTMULTIINTERNAL 40 40 { 41 /** Magic value (RTSEMEVENT _MAGIC). */41 /** Magic value (RTSEMEVENTMULTI_MAGIC). */ 42 42 uint32_t volatile u32Magic; 43 43 /** The object status - !0 when signaled and 0 when reset. */ … … 54 54 if (pThis) 55 55 { 56 pThis->u32Magic = RTSEMEVENT _MAGIC;56 pThis->u32Magic = RTSEMEVENTMULTI_MAGIC; 57 57 init_waitqueue_head(&pThis->Head); 58 58 *pEventMultiSem = pThis; … … 72 72 return VERR_INVALID_PARAMETER; 73 73 AssertPtrReturn(pThis, VERR_INVALID_PARAMETER); 74 AssertMsgReturn(pThis->u32Magic == RTSEMEVENT _MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER);74 AssertMsgReturn(pThis->u32Magic == RTSEMEVENTMULTI_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER); 75 75 76 76 /* … … 95 95 return VERR_INVALID_PARAMETER; 96 96 AssertPtrReturn(pThis, VERR_INVALID_PARAMETER); 97 AssertMsgReturn(pThis->u32Magic == RTSEMEVENT _MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER);97 AssertMsgReturn(pThis->u32Magic == RTSEMEVENTMULTI_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER); 98 98 99 99 /* … … 115 115 return VERR_INVALID_PARAMETER; 116 116 AssertPtrReturn(pThis, VERR_INVALID_PARAMETER); 117 AssertMsgReturn(pThis->u32Magic == RTSEMEVENT _MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER);117 AssertMsgReturn(pThis->u32Magic == RTSEMEVENTMULTI_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER); 118 118 119 119 /* … … 161 161 162 162 /* Check if someone destroyed the semaphore while we were waiting. */ 163 if (pThis->u32Magic != RTSEMEVENT _MAGIC)163 if (pThis->u32Magic != RTSEMEVENTMULTI_MAGIC) 164 164 { 165 165 rc = VERR_SEM_DESTROYED; … … 186 186 return VERR_INVALID_PARAMETER; 187 187 AssertPtrReturn(pThis, VERR_INVALID_PARAMETER); 188 AssertMsgReturn(pThis->u32Magic == RTSEMEVENT _MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER);188 AssertMsgReturn(pThis->u32Magic == RTSEMEVENTMULTI_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER); 189 189 190 190 if (pThis->fState) … … 200 200 return VERR_INVALID_PARAMETER; 201 201 AssertPtrReturn(pThis, VERR_INVALID_PARAMETER); 202 AssertMsgReturn(pThis->u32Magic == RTSEMEVENT _MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER);202 AssertMsgReturn(pThis->u32Magic == RTSEMEVENTMULTI_MAGIC, ("%p u32Magic=%RX32\n", pThis, pThis->u32Magic), VERR_INVALID_PARAMETER); 203 203 204 204 if (pThis->fState)
Note:
See TracChangeset
for help on using the changeset viewer.