Remove the binding between current thread and module instance and bugs fix (#131)
Remove wasm_export_api.h that may confuse Implement wasm_runtime_validate_app_str_addr() Fix bugs of loader and pass more spec cases Signed-off-by: Weining Lu <weining.x.lu@intel.com>
This commit is contained in:
@ -234,7 +234,8 @@ unsigned bh_queue_get_message_count(bh_queue *queue)
|
||||
}
|
||||
|
||||
void bh_queue_enter_loop_run(bh_queue *queue,
|
||||
bh_queue_handle_msg_callback handle_cb)
|
||||
bh_queue_handle_msg_callback handle_cb,
|
||||
void *arg)
|
||||
{
|
||||
if (!queue)
|
||||
return;
|
||||
@ -243,7 +244,7 @@ void bh_queue_enter_loop_run(bh_queue *queue,
|
||||
bh_queue_node * message = bh_get_msg(queue, BH_WAIT_FOREVER);
|
||||
|
||||
if (message) {
|
||||
handle_cb(message);
|
||||
handle_cb(message, arg);
|
||||
bh_free_msg(message);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user