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 #ifndef VM_THREAD_H_ | 5 #ifndef VM_THREAD_H_ |
6 #define VM_THREAD_H_ | 6 #define VM_THREAD_H_ |
7 | 7 |
8 #include "vm/globals.h" | 8 #include "vm/globals.h" |
9 #include "vm/handles.h" | 9 #include "vm/handles.h" |
10 #include "vm/os_thread.h" | 10 #include "vm/os_thread.h" |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
505 // Returns false when there are no more threads left. | 505 // Returns false when there are no more threads left. |
506 bool HasNext() const; | 506 bool HasNext() const; |
507 | 507 |
508 // Returns the current thread and moves forward. | 508 // Returns the current thread and moves forward. |
509 Thread* Next(); | 509 Thread* Next(); |
510 | 510 |
511 private: | 511 private: |
512 Thread* next_; | 512 Thread* next_; |
513 }; | 513 }; |
514 | 514 |
515 #if defined(TARGET_OS_WINDOWS) | |
516 // Clears the state of the current thread and frees the allocation. | |
517 void WindowsThreadCleanUp(); | |
518 #endif | |
siva
2015/10/13 21:30:54
Not sure why this needs to be here in this common
Cutch
2015/10/14 14:43:18
This is structured like this because the Thread::C
| |
519 | |
515 } // namespace dart | 520 } // namespace dart |
516 | 521 |
517 #endif // VM_THREAD_H_ | 522 #endif // VM_THREAD_H_ |
OLD | NEW |