You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
280 B

#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;
};