Changeset 54176 in vbox for trunk/src/libs/xpcom18a4/ipc/ipcd
- Timestamp:
- Feb 12, 2015 12:59:44 PM (10 years ago)
- Location:
- trunk/src/libs/xpcom18a4/ipc/ipcd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp
r52413 r54176 3554 3554 mon.Enter(); 3555 3555 // examine the queue 3556 if ( !mPendingQ.IsEmpty() && !mWaitingWorkers)3556 if (mPendingQ.Count() > mWaitingWorkers) 3557 3557 { 3558 3558 // wait a little while to let the workers empty the queue. … … 3565 3565 mon.Enter(); 3566 3566 // examine the queue again 3567 if ( !mPendingQ.IsEmpty() && !mWaitingWorkers)3567 if (mPendingQ.Count() > mWaitingWorkers) 3568 3568 { 3569 3569 // we need one more worker -
trunk/src/libs/xpcom18a4/ipc/ipcd/shared/src/ipcList.h
r1 r54176 175 175 } 176 176 177 // gets count of list elements 178 PRUint32 Count() 179 { 180 T *obj = mHead; 181 PRUint32 count = 0; 182 while (obj) { 183 count++; 184 obj = obj->mNext; 185 } 186 187 return count; 188 } 189 177 190 protected: 178 191 void AdvanceHead()
Note:
See TracChangeset
for help on using the changeset viewer.