[zion] Update LinkedList iterator semantics.
This commit is contained in:
parent
242a18ae3c
commit
b27672d5de
4 changed files with 7 additions and 7 deletions
|
|
@ -42,7 +42,7 @@ RefPtr<Thread> Process::GetThread(uint64_t tid) {
|
|||
MutexHolder lock(mutex_);
|
||||
auto iter = threads_.begin();
|
||||
while (iter != threads_.end()) {
|
||||
if (iter->tid() == tid) {
|
||||
if ((*iter)->tid() == tid) {
|
||||
return *iter;
|
||||
}
|
||||
++iter;
|
||||
|
|
@ -55,7 +55,7 @@ void Process::CheckState() {
|
|||
MutexHolder lock(mutex_);
|
||||
auto iter = threads_.begin();
|
||||
while (iter != threads_.end()) {
|
||||
if (iter->GetState() != Thread::FINISHED) {
|
||||
if ((*iter)->GetState() != Thread::FINISHED) {
|
||||
return;
|
||||
}
|
||||
++iter;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue