aboutsummaryrefslogtreecommitdiff
path: root/broccoli/includes/types.h
diff options
context:
space:
mode:
authorRobert Gustafsson <robg@student.chalmers.se>2017-10-04 20:15:27 +0200
committerRobert Gustafsson <robg@student.chalmers.se>2017-10-04 20:15:27 +0200
commit6701024e285d4e64b600ab87c88eb85dd64ad336 (patch)
tree32d0e0104f977085915c6ce2385a61b07f1369a1 /broccoli/includes/types.h
parent303be924d87e699bc21029fc71fd97cc676b88e3 (diff)
downloadmidbro-6701024e285d4e64b600ab87c88eb85dd64ad336.tar.gz
midbro-6701024e285d4e64b600ab87c88eb85dd64ad336.tar.bz2
Fix synch issue with semaphores
Diffstat (limited to 'broccoli/includes/types.h')
-rw-r--r--broccoli/includes/types.h3
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