mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
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:
committed by
Peter Johnson
parent
0cd05d1a42
commit
2c94d0ba2f
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user