OLD | NEW |
---|---|
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/thread.h" | 5 #include "vm/thread.h" |
6 | 6 |
7 #include "vm/growable_array.h" | 7 #include "vm/growable_array.h" |
8 #include "vm/isolate.h" | 8 #include "vm/isolate.h" |
9 #include "vm/lockers.h" | 9 #include "vm/lockers.h" |
10 #include "vm/log.h" | 10 #include "vm/log.h" |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
524 | 524 |
525 | 525 |
526 Thread* ThreadIterator::Next() { | 526 Thread* ThreadIterator::Next() { |
527 ASSERT(Thread::thread_list_lock_ != NULL); | 527 ASSERT(Thread::thread_list_lock_ != NULL); |
528 ASSERT(Thread::thread_list_lock_->IsOwnedByCurrentThread()); | 528 ASSERT(Thread::thread_list_lock_->IsOwnedByCurrentThread()); |
529 Thread* current = next_; | 529 Thread* current = next_; |
530 next_ = next_->thread_list_next_; | 530 next_ = next_->thread_list_next_; |
531 return current; | 531 return current; |
532 } | 532 } |
533 | 533 |
534 void WindowsThreadCleanUp() { | |
535 Thread::CleanUp(); | |
536 } | |
siva
2015/10/13 21:30:54
Ditto comment.
Cutch
2015/10/14 14:43:18
Acknowledged.
| |
534 | 537 |
535 } // namespace dart | 538 } // namespace dart |
OLD | NEW |