找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1040|回复: 1

px4源码中mutex的问题

[复制链接]

130

主题

44

回帖

3万

积分

管理员

积分
39544
发表于 2025-3-20 10:46:21 | 显示全部楼层 |阅读模式
../../src/modules/commander/Commander.cpp:81:52: error: too few arguments to function 'int pthread_mutex_init(pthread_mutex_t*, const pthread_mutexattr_t*)'
   81 | pthread_mutex_t _status_mutex = pthread_mutex_init();
      |                                                    ^
compilation terminated due to -Wfatal-errors.


130

主题

44

回帖

3万

积分

管理员

积分
39544
 楼主| 发表于 2025-3-20 10:50:25 | 显示全部楼层
pthread_mutex_t _status_mutex;
  pthread_mutex_init(&_status_mutex, NULL);
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|flightreview|小黑屋|PX4-Autopilot|PX4论坛

GMT+8, 2026-4-30 07:51 , Processed in 0.020431 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表