Cleaned up integer type usage in the HAL (#192)

Replaced all uses of built-in types except char with stdint.h typedefs and all unsigned types with signed in the HAL
This commit is contained in:
Tyler Veness
2016-09-06 19:39:28 -07:00
committed by Peter Johnson
parent 0cd05d1a42
commit 2c94d0ba2f
20 changed files with 50 additions and 44 deletions

View File

@@ -15,7 +15,7 @@
class Semaphore {
public:
explicit Semaphore(uint32_t count = 0);
explicit Semaphore(int32_t count = 0);
Semaphore(Semaphore&&);
Semaphore& operator=(Semaphore&&);
@@ -28,11 +28,11 @@ class Semaphore {
static const int32_t kNoWait = 0;
static const int32_t kWaitForever = -1;
static const uint32_t kEmpty = 0;
static const uint32_t kFull = 1;
static const int32_t kEmpty = 0;
static const int32_t kFull = 1;
private:
priority_mutex m_mutex;
std::condition_variable_any m_condition;
uint32_t m_count = 0;
int32_t m_count = 0;
};