Changeset 25685 in vbox for trunk/src/VBox/Runtime/r3/generic
- Timestamp:
- Jan 7, 2010 10:03:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/generic/semspinmutex-r3-generic.cpp
r21540 r25685 51 51 if (!pCritSect) 52 52 return VERR_NO_MEMORY; 53 int rc = RTCritSectInit(pCritSect); 53 int rc = RTCritSectInitEx(pCritSect, RTCRITSECT_FLAGS_NO_NESTING | RTCRITSECT_FLAGS_NO_LOCK_VAL, 54 NIL_RTLOCKVALCLASS, RTLOCKVAL_SUB_CLASS_NONE, "RTSemSpinMutex"); 54 55 if (RT_SUCCESS(rc)) 55 {56 pCritSect->fFlags |= RTCRITSECT_FLAGS_NO_NESTING;57 56 *phSpinMtx = (RTSEMSPINMUTEX)pCritSect; 58 }59 57 else 60 58 RTMemFree(pCritSect);
Note:
See TracChangeset
for help on using the changeset viewer.