◆ PendingCall()
dart::PendingCall::PendingCall |
( |
void ** |
buffer, |
|
|
size_t * |
length |
|
) |
| |
|
inline |
Definition at line 630 of file ffi_test_functions_vmspecific.cc.
632 receive_port_ =
634 false);
635 }
static void HandleResponse(Dart_Port p, Dart_CObject *message)
static const uint8_t buffer[]
◆ ~PendingCall()
dart::PendingCall::~PendingCall |
( |
| ) |
|
|
inline |
◆ HandleResponse()
Definition at line 651 of file ffi_test_functions_vmspecific.cc.
651 {
653 FATAL(
"C : Wrong Data: message->type != Dart_CObject_kArray.\n");
654 }
658 printf(
"C : HandleResponse (call: %" Px ", message: %" Px ").\n",
659 reinterpret_cast<intptr_t>(c_pending_call),
660 reinterpret_cast<intptr_t>(c_message));
661
662 auto pending_call =
reinterpret_cast<PendingCall*
>(
666
667 pending_call->ResolveCall(c_message);
668 }
PendingCall(void **buffer, size_t *length)
std::string printf(const char *fmt,...) SK_PRINTF_LIKE(1
union _Dart_CObject::@86 value
struct _Dart_CObject::@86::@89 as_array
struct _Dart_CObject ** values
◆ port()
◆ PostAndWait()
Definition at line 640 of file ffi_test_functions_vmspecific.cc.
640 {
641 std::unique_lock<std::mutex> lock(mutex);
642 const bool success = Dart_PostCObject_DL(
port,
object);
643 if (!success)
FATAL(
"Failed to send message, invalid port or isolate died");
644
645 printf(
"C : Waiting for result.\n");
646 while (!notified) {
647 cv.wait(lock);
648 }
649 }
The documentation for this class was generated from the following file: