Adjusted SharedStruct and reverted semaphores.

This commit is contained in:
2022-10-15 20:18:06 -05:00
parent 0395a88a63
commit 898851a185
4 changed files with 47 additions and 43 deletions
+3 -2
View File
@@ -8,8 +8,9 @@ typedef struct SharedStruct
{
int buffer[10];
int count[10];
sem_t semConsumer;
sem_t semProducer;
sem_t mutex;
sem_t empty;
sem_t full;
} SharedStruct;
void SharedStructInit(SharedStruct* sharedMem);