18 lines
282 B
C
18 lines
282 B
C
#ifndef SHARED_H
|
|
#define SHARED_H
|
|
#include <semaphore.h>
|
|
|
|
int StringToNumber(char* argv);
|
|
|
|
typedef struct SharedStruct
|
|
{
|
|
int buffer[10];
|
|
int count[10];
|
|
sem_t mutex;
|
|
sem_t empty;
|
|
sem_t full;
|
|
} SharedStruct;
|
|
|
|
void SharedStructInit(SharedStruct* sharedMem);
|
|
|
|
#endif |