mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
sched/hrtimer: Add const for hrtimer argument.
The callback function can not modify the hrtimer. Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
committed by
Xiang Xiao
parent
1d6068f6fb
commit
740f518083
@@ -66,7 +66,7 @@ typedef struct hrtimer_node_s hrtimer_node_t;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
typedef CODE uint64_t
|
typedef CODE uint64_t
|
||||||
(*hrtimer_cb)(FAR hrtimer_t *hrtimer, uint64_t expired);
|
(*hrtimer_cb)(FAR const hrtimer_t *hrtimer, uint64_t expired);
|
||||||
|
|
||||||
/* Red-black tree node used to order hrtimers by expiration time */
|
/* Red-black tree node used to order hrtimers by expiration time */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user