|
|
|
@ -68,7 +68,7 @@ struct wqueue_s g_work[NWORKERS];
@@ -68,7 +68,7 @@ struct wqueue_s g_work[NWORKERS];
|
|
|
|
|
/****************************************************************************
|
|
|
|
|
* Private Variables |
|
|
|
|
****************************************************************************/ |
|
|
|
|
sem_t _work_lock[NWORKERS]; |
|
|
|
|
px4_sem_t _work_lock[NWORKERS]; |
|
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
|
* Private Functions |
|
|
|
@ -187,10 +187,10 @@ static void work_process(struct wqueue_s *wqueue, int lock_id)
@@ -187,10 +187,10 @@ static void work_process(struct wqueue_s *wqueue, int lock_id)
|
|
|
|
|
****************************************************************************/ |
|
|
|
|
void work_queues_init(void) |
|
|
|
|
{ |
|
|
|
|
sem_init(&_work_lock[HPWORK], 0, 1); |
|
|
|
|
sem_init(&_work_lock[LPWORK], 0, 1); |
|
|
|
|
px4_sem_init(&_work_lock[HPWORK], 0, 1); |
|
|
|
|
px4_sem_init(&_work_lock[LPWORK], 0, 1); |
|
|
|
|
#ifdef CONFIG_SCHED_USRWORK |
|
|
|
|
sem_init(&_work_lock[USRWORK], 0, 1); |
|
|
|
|
px4_sem_init(&_work_lock[USRWORK], 0, 1); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
// Create high priority worker thread
|
|
|
|
|