diff options
author | Robert Gustafsson <robg@student.chalmers.se> | 2017-10-04 20:15:27 +0200 |
---|---|---|
committer | Andreas Lindhé <andreas@lindhe.io> | 2017-10-09 12:14:35 +0200 |
commit | 4eb7dc8cc602a2c38c27eb6700fcb3ea79951c20 (patch) | |
tree | 0a3643ba1ed90fa14663eaafde78da8ae7a2706b /broccoli/includes | |
parent | 6f8841ae3739339eb5bf93648290734828a72251 (diff) | |
download | midbro-4eb7dc8cc602a2c38c27eb6700fcb3ea79951c20.tar.gz midbro-4eb7dc8cc602a2c38c27eb6700fcb3ea79951c20.tar.bz2 |
Fix synch issue with semaphores
Diffstat (limited to 'broccoli/includes')
-rw-r--r-- | broccoli/includes/types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/broccoli/includes/types.h b/broccoli/includes/types.h index a8fa1cf..d2cf19e 100644 --- a/broccoli/includes/types.h +++ b/broccoli/includes/types.h @@ -1,5 +1,6 @@ #ifndef TYPES_H #define TYPES_H +#include <semaphore.h> #define true 1 #define false 0 @@ -24,6 +25,8 @@ struct fifo_q{ Queue_t * tail; int maxSize; int currentSize; + sem_t bufferEmptyBlock; + sem_t lock; }; #endif |