ardupilot/libraries/AP_HAL/Semaphores.h
Andrew Tridgell bf0b0c1773 AP_HAL: fixed HAL_SEMAPHORE_BLOCK_FOREVER to be zero
all implementations assume this
2016-11-09 17:07:57 +11:00

13 lines
270 B
C++

#pragma once
#include "AP_HAL_Namespace.h"
#define HAL_SEMAPHORE_BLOCK_FOREVER 0
class AP_HAL::Semaphore {
public:
virtual bool take(uint32_t timeout_ms) WARN_IF_UNUSED = 0 ;
virtual bool take_nonblocking() WARN_IF_UNUSED = 0;
virtual bool give() = 0;
};