ardupilot/libraries/AP_HAL_Empty/Semaphores.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
280 B
C
Raw Permalink Normal View History

#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;
2021-07-01 03:29:34 -03:00
bool check_owner() { return true; }
private:
bool _taken;
};