Changeset 46717 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jun 21, 2013 8:34:43 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/EventQueue.cpp
r46652 r46717 91 91 { 92 92 fWait = mEvents.size() == 0; 93 if ( !fWait)93 if (fWait) 94 94 { 95 95 int rc2 = RTCritSectLeave(&mCritSect); … … 98 98 } 99 99 else 100 fWait = false;101 102 if (fWait)103 100 { 104 101 int rc2 = RTCritSectLeave(&mCritSect); 105 102 AssertRC(rc2); 106 103 fWait = false; 104 } 105 106 if (fWait) 107 { 107 108 rc = RTSemEventWaitNoResume(mSemEvent, cMsTimeout); 109 if (RT_SUCCESS(rc)) 110 rc = RTCritSectEnter(&mCritSect); 108 111 } 109 112 … … 113 116 return VERR_INTERRUPTED; 114 117 115 if (fWait)116 rc = RTCritSectEnter(&mCritSect);117 118 if (RT_SUCCESS(rc)) 118 119 {
Note:
See TracChangeset
for help on using the changeset viewer.