diff options
author | Robert Gustafsson <robg@student.chalmers.se> | 2017-10-27 09:17:21 +0200 |
---|---|---|
committer | Robert Gustafsson <robg@student.chalmers.se> | 2017-10-27 09:18:45 +0200 |
commit | a8ad8cbeda0e0dd5d29c5d4dc5afeaa9c4fccfdf (patch) | |
tree | 25adf2c37d6d0f965bc5302bcb957c8458553303 /broccoli/includes | |
parent | ef2139ca2d442979daefa9e84cc9d27ce620d9e2 (diff) | |
download | midbro-a8ad8cbeda0e0dd5d29c5d4dc5afeaa9c4fccfdf.tar.gz midbro-a8ad8cbeda0e0dd5d29c5d4dc5afeaa9c4fccfdf.tar.bz2 |
Add semaphore to block producer if buffer is full
Diffstat (limited to 'broccoli/includes')
-rw-r--r-- | broccoli/includes/types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/broccoli/includes/types.h b/broccoli/includes/types.h index b23da1a..149415e 100644 --- a/broccoli/includes/types.h +++ b/broccoli/includes/types.h @@ -30,6 +30,7 @@ struct fifo_q{ int valuesReceived; int valuesReleased; sem_t bufferEmptyBlock; + sem_t bufferFullBlock; sem_t lock; }; |