5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-16 13:48:29 -04:00
ardupilot/libraries/AP_HAL_Empty/Semaphores.h
2018-11-08 11:30:12 +11:00

14 lines
274 B
C++

#pragma once
#include "AP_HAL_Empty.h"
class Empty::Semaphore : public AP_HAL::Semaphore {
public:
Semaphore() : _taken(false) {}
bool give() override;
bool take(uint32_t timeout_ms) override;
bool take_nonblocking() override;
private:
bool _taken;
};