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

px4源码中mutex的问题

[复制链接]

47

主题

34

回帖

4万

积分

管理员

积分
42145
发表于 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.


我知道答案 回答被采纳将会获得 10 金钱 已有1人回答

47

主题

34

回帖

4万

积分

管理员

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

本版积分规则

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

GMT+8, 2025-5-9 22:50 , Processed in 0.069909 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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