Chromium Code Reviews| Index: runtime/include/dart_api.h |
| =================================================================== |
| --- runtime/include/dart_api.h (revision 1762) |
| +++ runtime/include/dart_api.h (working copy) |
| @@ -445,6 +445,16 @@ |
| // TODO(turnidge): Should this be removed from the public api? |
| /** |
| + * Gets the main Dart_Port for the current isolate. |
|
Anton Muhin
2011/11/23 19:28:14
nit: 'main' sounds too generic to me at least.
turnidge
2011/11/23 21:45:37
What do you think it should be called? Open to su
|
| + */ |
| +DART_EXPORT Dart_Port Dart_GetMainPort(); |
| + |
| +/** |
| + * Does the current isolate have active ports? |
| + */ |
| +DART_EXPORT bool Dart_IsolateHasActivePorts(); |
| + |
| +/** |
| * Posts a message for some isolate. The message is built from a raw |
| * array. |
| * |
| @@ -473,6 +483,16 @@ |
| */ |
| DART_EXPORT bool Dart_Post(Dart_Port port, Dart_Handle object); |
| +/** |
| + * Returns a new SendPort with the provided id. |
| + */ |
| +DART_EXPORT Dart_Handle Dart_NewSendPort(Dart_Port port); |
| + |
| +/** |
| + * Returns a new ReceivePort with the provided id. |
| + */ |
| +DART_EXPORT Dart_Handle Dart_NewReceivePort(Dart_Port port); |
| + |
| // --- Scopes ---- |
| /** |