OLD | NEW |
1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #ifndef SRC_VM_THREAD_POSIX_H_ | 5 #ifndef SRC_VM_THREAD_POSIX_H_ |
6 #define SRC_VM_THREAD_POSIX_H_ | 6 #define SRC_VM_THREAD_POSIX_H_ |
7 | 7 |
8 #ifndef SRC_VM_THREAD_H_ | 8 #ifndef SRC_VM_THREAD_H_ |
9 #error "Don't include thread_posix.h directly, include thread.h." | 9 #error "Don't include thread_posix.h directly, include thread.h." |
10 #endif | 10 #endif |
11 | 11 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 friend class Thread; | 44 friend class Thread; |
45 | 45 |
46 explicit ThreadIdentifier(pthread_t thread) : thread_(thread) {} | 46 explicit ThreadIdentifier(pthread_t thread) : thread_(thread) {} |
47 | 47 |
48 pthread_t thread_; | 48 pthread_t thread_; |
49 }; | 49 }; |
50 | 50 |
51 } // namespace fletch | 51 } // namespace fletch |
52 | 52 |
53 #endif // SRC_VM_THREAD_POSIX_H_ | 53 #endif // SRC_VM_THREAD_POSIX_H_ |
OLD | NEW |