OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3 * for details. All rights reserved. Use of this source code is governed by a | 3 * for details. All rights reserved. Use of this source code is governed by a |
4 * BSD-style license that can be found in the LICENSE file. | 4 * BSD-style license that can be found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 #ifndef INCLUDE_DART_API_H_ | 7 #ifndef INCLUDE_DART_API_H_ |
8 #define INCLUDE_DART_API_H_ | 8 #define INCLUDE_DART_API_H_ |
9 | 9 |
10 /** \mainpage Dart Embedding API Reference | 10 /** \mainpage Dart Embedding API Reference |
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1003 /** | 1003 /** |
1004 * Enters an isolate. After calling this function, | 1004 * Enters an isolate. After calling this function, |
1005 * the current isolate will be set to the provided isolate. | 1005 * the current isolate will be set to the provided isolate. |
1006 * | 1006 * |
1007 * Requires there to be no current isolate. Multiple threads may not be in | 1007 * Requires there to be no current isolate. Multiple threads may not be in |
1008 * the same isolate at once. | 1008 * the same isolate at once. |
1009 */ | 1009 */ |
1010 DART_EXPORT void Dart_EnterIsolate(Dart_Isolate isolate); | 1010 DART_EXPORT void Dart_EnterIsolate(Dart_Isolate isolate); |
1011 | 1011 |
1012 /** | 1012 /** |
1013 * Notifies the VM that the current isolate is about to make a blocking call. | 1013 * Notifies the VM that the current thread is about to make a blocking call. |
1014 */ | 1014 */ |
1015 DART_EXPORT void Dart_IsolateBlocked(); | 1015 DART_EXPORT void Dart_ThreadBlocked(); |
siva
2015/10/26 23:45:26
With the new safepointing code a Blocked thread is
Cutch
2015/10/27 22:36:24
Done.
Dart_ThreadDisableProfiling
Dart_ThreadEnab
| |
1016 | 1016 |
1017 /** | 1017 /** |
1018 * Notifies the VM that the current isolate is no longer blocked. | 1018 * Notifies the VM that the current thread is no longer blocked. |
1019 */ | 1019 */ |
1020 DART_EXPORT void Dart_IsolateUnblocked(); | 1020 DART_EXPORT void Dart_ThreadUnblocked(); |
1021 | 1021 |
1022 /** | 1022 /** |
1023 * Exits an isolate. After this call, Dart_CurrentIsolate will | 1023 * Exits an isolate. After this call, Dart_CurrentIsolate will |
1024 * return NULL. | 1024 * return NULL. |
1025 * | 1025 * |
1026 * Requires there to be a current isolate. | 1026 * Requires there to be a current isolate. |
1027 */ | 1027 */ |
1028 DART_EXPORT void Dart_ExitIsolate(); | 1028 DART_EXPORT void Dart_ExitIsolate(); |
1029 /* TODO(turnidge): We don't want users of the api to be able to exit a | 1029 /* TODO(turnidge): We don't want users of the api to be able to exit a |
1030 * "pure" dart isolate. Implement and document. */ | 1030 * "pure" dart isolate. Implement and document. */ |
(...skipping 1895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2926 | 2926 |
2927 DART_EXPORT Dart_Handle Dart_CreatePrecompiledSnapshot( | 2927 DART_EXPORT Dart_Handle Dart_CreatePrecompiledSnapshot( |
2928 uint8_t** vm_isolate_snapshot_buffer, | 2928 uint8_t** vm_isolate_snapshot_buffer, |
2929 intptr_t* vm_isolate_snapshot_size, | 2929 intptr_t* vm_isolate_snapshot_size, |
2930 uint8_t** isolate_snapshot_buffer, | 2930 uint8_t** isolate_snapshot_buffer, |
2931 intptr_t* isolate_snapshot_size, | 2931 intptr_t* isolate_snapshot_size, |
2932 uint8_t** instructions_snapshot_buffer, | 2932 uint8_t** instructions_snapshot_buffer, |
2933 intptr_t* instructions_snapshot_size); | 2933 intptr_t* instructions_snapshot_size); |
2934 | 2934 |
2935 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2935 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |