Changeset 51198 in webkit for trunk/JavaScriptCore/wtf/MessageQueue.h
- Timestamp:
- Nov 19, 2009, 11:59:38 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/MessageQueue.h
r50427 r51198 174 174 { 175 175 MutexLocker lock(m_mutex); 176 DequeConstIterator<DataType*> found = m_queue.end(); 177 while ((found = m_queue.findIf(predicate)) != m_queue.end()) { 176 // See bug 31657 for why this loop looks so weird 177 while (true) { 178 DequeConstIterator<DataType*> found = m_queue.findIf(predicate); 179 if (found == m_queue.end()) 180 break; 181 178 182 DataType* message = *found; 179 183 m_queue.remove(found);
Note:
See TracChangeset
for help on using the changeset viewer.