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 #if defined(FLETCH_TARGET_OS_POSIX) | 5 #if defined(FLETCH_TARGET_OS_POSIX) |
6 | 6 |
7 #include "src/vm/thread.h" // NOLINT we don't include thread_posix.h. | 7 #include "src/vm/thread.h" // NOLINT we don't include thread_posix.h. |
8 | 8 |
9 #include <errno.h> | 9 #include <errno.h> |
10 #include <stdio.h> | 10 #include <stdio.h> |
11 #include <sys/time.h> | 11 #include <sys/time.h> |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 Print::Error("Error %d", result); | 68 Print::Error("Error %d", result); |
69 } | 69 } |
70 FATAL1("pthread_create failed with error %d\n", result); | 70 FATAL1("pthread_create failed with error %d\n", result); |
71 } | 71 } |
72 return ThreadIdentifier(thread); | 72 return ThreadIdentifier(thread); |
73 } | 73 } |
74 | 74 |
75 } // namespace fletch | 75 } // namespace fletch |
76 | 76 |
77 #endif // defined(FLETCH_TARGET_OS_POSIX) | 77 #endif // defined(FLETCH_TARGET_OS_POSIX) |
OLD | NEW |