698c698,699
< std::list<unsigned>::iterator threads = (*activeThreads).begin();
---
> std::list<unsigned>::iterator threads = activeThreads->begin();
> std::list<unsigned>::iterator end = activeThreads->end();
700,701c701,703
< while (threads != (*activeThreads).end()) {
< unsigned thread_count = skidBuffer[*threads++].size();
---
> while (threads != end) {
> unsigned tid = *threads++;
> unsigned thread_count = skidBuffer[tid].size();
713c715,716
< std::list<unsigned>::iterator threads = (*activeThreads).begin();
---
> std::list<unsigned>::iterator threads = activeThreads->begin();
> std::list<unsigned>::iterator end = activeThreads->end();
715,716c718,721
< while (threads != (*activeThreads).end()) {
< if (!skidBuffer[*threads++].empty())
---
> while (threads != end) {
> unsigned tid = *threads++;
>
> if (!skidBuffer[tid].empty())
729c734,735
< std::list<unsigned>::iterator threads = (*activeThreads).begin();
---
> std::list<unsigned>::iterator threads = activeThreads->begin();
> std::list<unsigned>::iterator end = activeThreads->end();
731,733c737
< threads = (*activeThreads).begin();
<
< while (threads != (*activeThreads).end()) {
---
> while (threads != end) {
1147d1150
< #if FULL_SYSTEM
1153d1155
< #endif
1253c1255,1256
< std::list<unsigned>::iterator threads = (*activeThreads).begin();
---
> std::list<unsigned>::iterator threads = activeThreads->begin();
> std::list<unsigned>::iterator end = activeThreads->end();
1255c1258
< while (threads != (*activeThreads).end()) {
---
> while (threads != end) {
1494c1497,1498
< std::list<unsigned>::iterator threads = (*activeThreads).begin();
---
> std::list<unsigned>::iterator threads = activeThreads->begin();
> std::list<unsigned>::iterator end = activeThreads->end();
1497,1498c1501,1502
< while (threads != (*activeThreads).end()) {
< unsigned tid = *threads++;
---
> while (threads != end) {
> unsigned tid = *threads++;
1538,1539c1542,1543
< threads = (*activeThreads).begin();
< while (threads != (*activeThreads).end()) {
---
> threads = activeThreads->begin();
> while (threads != end) {