Changeset 17275 for trunk/Mars
- Timestamp:
- 10/20/13 18:31:31 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/Queue.h
r17268 r17275 13 13 // splice(); // used to efficiently implement post with mutex 14 14 15 using namespace std; 16 15 17 template<class T, class List=std::list<T>> 16 18 class Queue … … 86 88 // successfull [allowed==0], the next event will be processed 87 89 // immediately. 88 if (!fCallback || !fCallback(*it)) 90 91 if (fCallback && fCallback(*it)) 89 92 allowed = 0; 90 93 … … 92 95 93 96 // Whenever an event was successfully processed, allowed 94 // is larger thanzero and thus the event will be popped95 if (allowed ==0)97 // is equal to zero and thus the event will be popped 98 if (allowed>0) 96 99 continue; 97 100 98 101 fList.erase(it); 99 100 102 fSize--; 101 allowed--;102 103 103 } 104 104
Note:
See TracChangeset
for help on using the changeset viewer.