mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 09:13:33 +08:00
Work queues: Move to POSIX semaphore abstraction
This commit is contained in:
@@ -66,7 +66,7 @@ struct wqueue_s g_hrt_work;
|
||||
/****************************************************************************
|
||||
* Private Variables
|
||||
****************************************************************************/
|
||||
sem_t _hrt_work_lock;
|
||||
px4_sem_t _hrt_work_lock;
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
@@ -241,7 +241,7 @@ static int work_hrtthread(int argc, char *argv[])
|
||||
|
||||
void hrt_work_queue_init(void)
|
||||
{
|
||||
sem_init(&_hrt_work_lock, 0, 1);
|
||||
px4_sem_init(&_hrt_work_lock, 0, 1);
|
||||
|
||||
// Create high priority worker thread
|
||||
g_hrt_work.pid = px4_task_spawn_cmd("wkr_hrt",
|
||||
|
||||
Reference in New Issue
Block a user