Changeset 38042 in vbox for trunk/src/VBox
- Timestamp:
- Jul 18, 2011 10:40:50 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PDMAllCritSect.cpp
r38035 r38042 320 320 VMMDECL(int) PDMCritSectEnter(PPDMCRITSECT pCritSect, int rcBusy) 321 321 { 322 int rc;323 #ifndef IN_RING3324 if (rcBusy == VINF_SUCCESS)325 {326 # ifndef PDMCRITSECT_STRICT327 rc = pdmCritSectEnter(pCritSect, VERR_SEM_BUSY, NULL);328 # else329 RTLOCKVALSRCPOS SrcPos = RTLOCKVALSRCPOS_INIT_NORMAL_API();330 rc = pdmCritSectEnter(pCritSect, VERR_SEM_BUSY, &SrcPos);331 # endif332 }333 else334 #endif /* !IN_RING3 */335 {336 322 #ifndef PDMCRITSECT_STRICT 337 rc = pdmCritSectEnter(pCritSect, rcBusy, NULL); 338 #else 339 RTLOCKVALSRCPOS SrcPos = RTLOCKVALSRCPOS_INIT_NORMAL_API(); 340 rc = pdmCritSectEnter(pCritSect, rcBusy, &SrcPos); 341 #endif 342 } 343 return rc; 323 return pdmCritSectEnter(pCritSect, rcBusy, NULL); 324 #else 325 RTLOCKVALSRCPOS SrcPos = RTLOCKVALSRCPOS_INIT_NORMAL_API(); 326 return pdmCritSectEnter(pCritSect, rcBusy, &SrcPos); 327 #endif 344 328 } 345 329
Note:
See TracChangeset
for help on using the changeset viewer.