Changeset 90612 in vbox
- Timestamp:
- Aug 10, 2021 10:21:16 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 146223
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PDMAllCritSectRw.cpp
r90611 r90612 1007 1007 * Okay, we have contention and will have to wait unless we're just trying. 1008 1008 */ 1009 if (fTryOnly) 1010 { 1011 STAM_REL_COUNTER_INC(&pThis->s.CTX_MID_Z(StatContention,EnterExcl)); /** @todo different statistics for this */ 1012 return pdmCritSectRwEnterExclBailOut(pThis, VERR_SEM_BUSY); 1013 } 1014 1009 1015 STAM_REL_COUNTER_INC(&pThis->s.CTX_MID_Z(StatContention,EnterExcl)); 1010 1011 1016 #if defined(IN_RING3) || defined(IN_RING0) 1012 if ( !fTryOnly1013 1017 # ifdef IN_RING0 1014 &&RTThreadPreemptIsEnabled(NIL_RTTHREAD)1015 && ASMIntAreEnabled() 1018 if ( RTThreadPreemptIsEnabled(NIL_RTTHREAD) 1019 && ASMIntAreEnabled()) 1016 1020 # endif 1017 )1018 1021 { 1019 1022 # if defined(IN_RING3) && defined(PDMCRITSECTRW_STRICT) … … 1029 1032 #endif /* IN_RING3 || IN_RING0 */ 1030 1033 1031 #ifdef IN_RING3 1032 /* TryEnter call - decrement the number of (waiting) writers. */ 1033 return pdmCritSectRwEnterExclBailOut(pThis, VERR_SEM_BUSY); 1034 1035 #else 1036 1034 #ifndef IN_RING3 1037 1035 /* We cannot call SUPSemEventWaitNoResume in this context. Go back to 1038 1036 ring-3 and do it there or return rcBusy. */
Note:
See TracChangeset
for help on using the changeset viewer.