unified: remaining timeout cleanup

Rename remaining functions to fit with kernel naming convention for
internal interfaces. Use struct k_thread instead of struct tcs.

Change-Id: I28cd7f6f4d7ddaeb825c8d2999242d8d2dd93f31
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2016-10-05 17:16:01 -04:00
commit 055262c159
8 changed files with 51 additions and 57 deletions

View file

@ -142,7 +142,7 @@ extern void k_thread_abort(k_tid_t thread);
#define _THREAD_TIMEOUT_INIT(obj) \
(obj).nano_timeout = { \
.node = { {0}, {0} }, \
.tcs = NULL, \
.thread = NULL, \
.wait_q = NULL, \
.delta_ticks_from_prev = -1, \
},
@ -256,7 +256,7 @@ typedef void (*_timeout_func_t)(struct _timeout *t);
struct _timeout {
sys_dlist_t node;
struct tcs *tcs;
struct k_thread *thread;
sys_dlist_t *wait_q;
int32_t delta_ticks_from_prev;
_timeout_func_t func;