mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-02 14:13:42 -04:00
15 lines
280 B
C++
15 lines
280 B
C++
#pragma once
|
|
|
|
#include "AP_HAL_Empty.h"
|
|
|
|
class Empty::Semaphore : public AP_HAL::Semaphore {
|
|
public:
|
|
|
|
bool give() override;
|
|
bool take(uint32_t timeout_ms) override;
|
|
bool take_nonblocking() override;
|
|
bool check_owner() { return true; }
|
|
private:
|
|
bool _taken;
|
|
};
|