mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-10-10 02:52:52 +00:00
format
This commit is contained in:
parent
e911813317
commit
0b0ef2d117
|
@ -67,7 +67,7 @@ typedef float64 CellType_F64;
|
||||||
})
|
})
|
||||||
|
|
||||||
#define shared_heap_addr_app_to_native(app_addr, native_addr) \
|
#define shared_heap_addr_app_to_native(app_addr, native_addr) \
|
||||||
native_addr = shared_heap_base_addr + ((app_addr) - shared_heap_start_off)
|
native_addr = shared_heap_base_addr + ((app_addr)-shared_heap_start_off)
|
||||||
|
|
||||||
#define CHECK_SHARED_HEAP_OVERFLOW(app_addr, bytes, native_addr) \
|
#define CHECK_SHARED_HEAP_OVERFLOW(app_addr, bytes, native_addr) \
|
||||||
if (app_addr_in_shared_heap(app_addr, bytes)) \
|
if (app_addr_in_shared_heap(app_addr, bytes)) \
|
||||||
|
|
|
@ -84,7 +84,7 @@ thread1_callback(void *arg)
|
||||||
buf = wasm_runtime_addr_app_to_native(module_inst, argv[0]);
|
buf = wasm_runtime_addr_app_to_native(module_inst, argv[0]);
|
||||||
|
|
||||||
printf("wasm app1 send buf: %s\n\n", buf);
|
printf("wasm app1 send buf: %s\n\n", buf);
|
||||||
if (!bh_post_msg(queue, 1, buf, 1024 * (i+1))) {
|
if (!bh_post_msg(queue, 1, buf, 1024 * (i + 1))) {
|
||||||
printf("Failed to post message to queue\n");
|
printf("Failed to post message to queue\n");
|
||||||
wasm_runtime_shared_heap_free(module_inst, argv[0]);
|
wasm_runtime_shared_heap_free(module_inst, argv[0]);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user