mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-05 08:40:35 +08:00
POSIX: Fixed remaining broke gtests
The addition of the hrt workqueue required adding some additional files to unittests/CMakeLists.txt Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -35,7 +35,6 @@
|
||||
#define _uORBCommunicator_hpp_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
|
||||
namespace uORBCommunicator
|
||||
{
|
||||
|
||||
@@ -46,16 +46,16 @@ void hrt_work_queue_init(void);
|
||||
int hrt_work_queue(struct work_s *work, worker_t worker, void *arg, uint32_t delay);
|
||||
void hrt_work_cancel(struct work_s *work);
|
||||
|
||||
inline void hrt_work_lock(void);
|
||||
inline void hrt_work_unlock(void);
|
||||
//inline void hrt_work_lock(void);
|
||||
//inline void hrt_work_unlock(void);
|
||||
|
||||
inline void hrt_work_lock()
|
||||
static inline void hrt_work_lock()
|
||||
{
|
||||
//PX4_INFO("hrt_work_lock");
|
||||
sem_wait(&_hrt_work_lock);
|
||||
}
|
||||
|
||||
inline void hrt_work_unlock()
|
||||
static inline void hrt_work_unlock()
|
||||
{
|
||||
//PX4_INFO("hrt_work_unlock");
|
||||
sem_post(&_hrt_work_lock);
|
||||
|
||||
Reference in New Issue
Block a user