◆ PendingCall()
dart::PendingCall::PendingCall |
( |
void ** |
buffer, |
|
|
size_t * |
length |
|
) |
| |
|
inline |
Definition at line 631 of file ffi_test_functions_vmspecific.cc.
633 receive_port_ =
635 false);
636 }
static void HandleResponse(Dart_Port p, Dart_CObject *message)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
◆ ~PendingCall()
dart::PendingCall::~PendingCall |
( |
| ) |
|
|
inline |
◆ HandleResponse()
Definition at line 652 of file ffi_test_functions_vmspecific.cc.
652 {
654 FATAL(
"C : Wrong Data: message->type != Dart_CObject_kArray.\n");
655 }
659 printf(
"C : HandleResponse (call: %" Px ", message: %" Px ").\n",
660 reinterpret_cast<intptr_t>(c_pending_call),
661 reinterpret_cast<intptr_t>(c_message));
662
663 auto pending_call =
reinterpret_cast<PendingCall*
>(
667
668 pending_call->ResolveCall(c_message);
669 }
PendingCall(void **buffer, size_t *length)
std::string printf(const char *fmt,...) SK_PRINTF_LIKE(1
union _Dart_CObject::@86 value
◆ port()
◆ PostAndWait()
Definition at line 641 of file ffi_test_functions_vmspecific.cc.
641 {
642 std::unique_lock<std::mutex> lock(mutex);
643 const bool success = Dart_PostCObject_DL(
port,
object);
644 if (!success)
FATAL(
"Failed to send message, invalid port or isolate died");
645
646 printf(
"C : Waiting for result.\n");
647 while (!notified) {
648 cv.wait(lock);
649 }
650 }
The documentation for this class was generated from the following file: