APM:Libraries
Semaphores.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "AP_HAL_Empty.h"
4 
6 public:
7  Semaphore() : _taken(false) {}
8  bool give();
9  bool take(uint32_t timeout_ms);
10  bool take_nonblocking();
11 private:
12  bool _taken;
13 };
bool take_nonblocking()
Definition: Semaphores.cpp:19
bool take(uint32_t timeout_ms)
Definition: Semaphores.cpp:15