From 4eb7dc8cc602a2c38c27eb6700fcb3ea79951c20 Mon Sep 17 00:00:00 2001 From: Robert Gustafsson Date: Wed, 4 Oct 2017 20:15:27 +0200 Subject: Fix synch issue with semaphores --- broccoli/includes/types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'broccoli/includes') 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 #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 -- cgit v1.2.1