re-org platform APIs, simplify porting process (#201)
Co-authored-by: Xu Jun <jun1.xu@intel.com>
This commit is contained in:
@ -269,12 +269,12 @@ check_exception()
|
||||
jeff_runtime_call_java(method, argc, argv, argt);
|
||||
|
||||
if (is_wd_started) {
|
||||
vm_mutex_lock(&wd_timer->lock);
|
||||
os_mutex_lock(&wd_timer->lock);
|
||||
if (!wd_timer->is_interrupting) {
|
||||
wd_timer->is_stopped = true;
|
||||
watchdog_timer_stop(wd_timer);
|
||||
}
|
||||
vm_mutex_unlock(&wd_timer->lock);
|
||||
os_mutex_unlock(&wd_timer->lock);
|
||||
}
|
||||
|
||||
return !check_exception();
|
||||
@ -1395,7 +1395,7 @@ check_exception()
|
||||
|
||||
if (applet_data->vm_instance->main_file) {
|
||||
app_manager_printf("Watchdog cancel applet main thread.\n");
|
||||
vm_thread_cancel(applet_data->vm_instance->main_tlr.handle);
|
||||
os_thread_cancel(applet_data->vm_instance->main_tlr.handle);
|
||||
/* k_thread_abort(applet_data->vm_instance->main_tlr.handle); */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user