Work queues: Move to POSIX semaphore abstraction

This commit is contained in:
Lorenz Meier
2015-09-20 00:27:28 +02:00
parent 604644d823
commit d73deabf5c
4 changed files with 14 additions and 17 deletions
+2 -2
View File
@@ -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",