Browse Source

add:luat_thread_delete空实现

Dozingfiretruck 4 years ago
parent
commit
511cc3a138
1 changed files with 1 additions and 3 deletions
  1. 1 3
      app/port/luat_rtos_air101.c

+ 1 - 3
app/port/luat_rtos_air101.c

@@ -39,9 +39,7 @@ LUAT_RET luat_thread_stop(luat_thread_t* thread) {
 }
 
 LUAT_RET luat_thread_delete(luat_thread_t* thread) {
-	tls_os_task_del(thread->priority, (void (*)(void))thread->entry);
-	luat_heap_free(thread->task_stk);
-	return 0;
+	return LUAT_ERR_FAIL;
 }
 
 LUAT_RET luat_queue_create(luat_rtos_queue_t* queue, size_t msgcount, size_t msgsize) {