mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-23 03:46:36 +08:00
Linux: Added work queue support and unit test
PX4 uses NuttX data structures throughout so those data structures were preserved and used to implement high and low priority queues. A unit test for the work queues was added. The polling rate of the queues are set in px4_config.h in CONFIG_SCHED_WORKPERIOD. The units are milliseconds. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -123,7 +123,7 @@ int work_queue(int qid, struct work_s *work, worker_t worker, void *arg, uint32_
|
||||
|
||||
int work_cancel(int qid, struct work_s *work);
|
||||
|
||||
int clock_systimer(void);
|
||||
uint32_t clock_systimer(void);
|
||||
|
||||
int work_hpthread(int argc, char *argv[]);
|
||||
int work_lpthread(int argc, char *argv[]);
|
||||
|
||||
Reference in New Issue
Block a user