Adjusted SharedStruct and reverted semaphores.
This commit is contained in:
+3
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user