mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 05:43:34 +08:00
POSIX: More Travis compile fixes
This commit is contained in:
@@ -63,7 +63,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* The state of each work queue. */
|
/* The state of each work queue. */
|
||||||
struct wqueue_s g_hrt_work = {};
|
struct wqueue_s g_hrt_work;
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Variables
|
* Private Variables
|
||||||
@@ -265,6 +265,7 @@ static int work_hrtthread(int argc, char *argv[])
|
|||||||
void hrt_work_queue_init(void)
|
void hrt_work_queue_init(void)
|
||||||
{
|
{
|
||||||
px4_sem_init(&_hrt_work_lock, 0, 1);
|
px4_sem_init(&_hrt_work_lock, 0, 1);
|
||||||
|
memset(&g_hrt_work, 0, sizeof(g_hrt_work));
|
||||||
|
|
||||||
// Create high priority worker thread
|
// Create high priority worker thread
|
||||||
g_hrt_work.pid = px4_task_spawn_cmd("wkr_hrt",
|
g_hrt_work.pid = px4_task_spawn_cmd("wkr_hrt",
|
||||||
|
|||||||
Reference in New Issue
Block a user