kernel: timer: update _timeout API for const correctness
API that takes _timeout structures but doesn't change data in them is updated to const-qualify the underlying object, allowing information to be retrieved from contexts where the containing object is immutable. Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
parent
e390105b0f
commit
16a4081520
3 changed files with 7 additions and 7 deletions
|
@ -1058,8 +1058,8 @@ __syscall void k_thread_abort(k_tid_t thread);
|
|||
*/
|
||||
__syscall void k_thread_start(k_tid_t thread);
|
||||
|
||||
extern k_ticks_t z_timeout_expires(struct _timeout *timeout);
|
||||
extern k_ticks_t z_timeout_remaining(struct _timeout *timeout);
|
||||
extern k_ticks_t z_timeout_expires(const struct _timeout *timeout);
|
||||
extern k_ticks_t z_timeout_remaining(const struct _timeout *timeout);
|
||||
|
||||
#ifdef CONFIG_SYS_CLOCK_EXISTS
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue