This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit bcad1d038a5c544459cec2c913bcd5b53545b6be Author: ouyangxiangzhen <ouyangxiangz...@xiaomi.com> AuthorDate: Tue Feb 18 10:31:39 2025 +0800 sched/wqueue: Rename periodic workqueue API. This commit renamed the periodic workqueue API. Signed-off-by: ouyangxiangzhen <ouyangxiangz...@xiaomi.com> --- include/nuttx/wqueue.h | 4 ++-- sched/wqueue/kwork_queue.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/nuttx/wqueue.h b/include/nuttx/wqueue.h index 586f04ea98..6155015540 100644 --- a/include/nuttx/wqueue.h +++ b/include/nuttx/wqueue.h @@ -419,7 +419,7 @@ int work_queue_wq(FAR struct kwork_wqueue_s *wqueue, FAR void *arg, clock_t delay); /**************************************************************************** - * Name: work_queue_period/work_queue_wq_period + * Name: work_queue_period/work_queue_period_wq * * Description: * Queue work to be performed periodically. All queued work will be @@ -451,7 +451,7 @@ int work_queue_wq(FAR struct kwork_wqueue_s *wqueue, int work_queue_period(int qid, FAR struct work_s *work, worker_t worker, FAR void *arg, clock_t delay, clock_t period); -int work_queue_wq_period(FAR struct kwork_wqueue_s *wqueue, +int work_queue_period_wq(FAR struct kwork_wqueue_s *wqueue, FAR struct work_s *work, worker_t worker, FAR void *arg, clock_t delay, clock_t period); diff --git a/sched/wqueue/kwork_queue.c b/sched/wqueue/kwork_queue.c index 1648f75aac..7af8e9800b 100644 --- a/sched/wqueue/kwork_queue.c +++ b/sched/wqueue/kwork_queue.c @@ -106,7 +106,7 @@ static bool work_is_canceling(FAR struct kworker_s *kworkers, int nthreads, ****************************************************************************/ /**************************************************************************** - * Name: work_queue_period/work_queue_wq_period + * Name: work_queue_period/work_queue_period_wq * * Description: * Queue work to be performed periodically. All queued work will be @@ -136,7 +136,7 @@ static bool work_is_canceling(FAR struct kworker_s *kworkers, int nthreads, * ****************************************************************************/ -int work_queue_wq_period(FAR struct kwork_wqueue_s *wqueue, +int work_queue_period_wq(FAR struct kwork_wqueue_s *wqueue, FAR struct work_s *work, worker_t worker, FAR void *arg, clock_t delay, clock_t period) { @@ -208,7 +208,7 @@ out: int work_queue_period(int qid, FAR struct work_s *work, worker_t worker, FAR void *arg, clock_t delay, clock_t period) { - return work_queue_wq_period(work_qid2wq(qid), work, worker, + return work_queue_period_wq(work_qid2wq(qid), work, worker, arg, delay, period); } @@ -246,7 +246,7 @@ int work_queue_wq(FAR struct kwork_wqueue_s *wqueue, FAR struct work_s *work, worker_t worker, FAR void *arg, clock_t delay) { - return work_queue_wq_period(wqueue, work, worker, arg, delay, 0); + return work_queue_period_wq(wqueue, work, worker, arg, delay, 0); } int work_queue(int qid, FAR struct work_s *work, worker_t worker,