OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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_LK) | 5 #if defined(FLETCH_TARGET_OS_LK) |
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 | 11 |
(...skipping 30 matching lines...) Expand all Loading... |
42 int result = thread_resume(thread); | 42 int result = thread_resume(thread); |
43 if (result != 0) { | 43 if (result != 0) { |
44 fprintf(stderr, "Error %d", result); | 44 fprintf(stderr, "Error %d", result); |
45 } | 45 } |
46 return ThreadIdentifier(thread); | 46 return ThreadIdentifier(thread); |
47 } | 47 } |
48 | 48 |
49 } // namespace fletch | 49 } // namespace fletch |
50 | 50 |
51 #endif // defined(FLETCH_TARGET_OS_LK) | 51 #endif // defined(FLETCH_TARGET_OS_LK) |
OLD | NEW |