atomkernel: Initialise new terminated flag in atomThreadCreate().

This commit is contained in:
Kelvin Lawson
2017-01-13 17:57:23 +00:00
parent 864666d0fa
commit c6070ee4d7

View File

@@ -404,6 +404,7 @@ uint8_t atomThreadCreate (ATOM_TCB *tcb_ptr, uint8_t priority, void (*entry_poin
/* Set up the TCB initial values */
tcb_ptr->suspended = FALSE;
tcb_ptr->terminated = FALSE;
tcb_ptr->priority = priority;
tcb_ptr->prev_tcb = NULL;
tcb_ptr->next_tcb = NULL;