Semaphores static again

This commit is contained in:
zenon 2018-06-08 15:16:41 +02:00
parent 255708ebc0
commit 8277a26ed2
3 changed files with 7 additions and 7 deletions

View File

@ -34,7 +34,7 @@
#define SEM_USED_SPACE "/used_space_01527193" #define SEM_USED_SPACE "/used_space_01527193"
#define SEM_WRITE_END "/write_end_01527193" #define SEM_WRITE_END "/write_end_01527193"
#define MAX_ITEMS 16 #define MAX_ITEMS 32
struct circ_buf { struct circ_buf {
int quit; int quit;

View File

@ -15,11 +15,11 @@ static struct circ_buf *shared;
int shmfd; int shmfd;
sem_t *sUsedSpace; static sem_t *sUsedSpace;
sem_t *sFreeSpace; static sem_t *sFreeSpace;
sem_t *sWriteEnd; static sem_t *sWriteEnd;
struct sigaction sa; struct sigaction sa;

View File

@ -14,11 +14,11 @@ struct circ_buf *shared;
int shmfd; int shmfd;
sem_t *sUsedSpace; static sem_t *sUsedSpace;
sem_t *sFreeSpace; static sem_t *sFreeSpace;
sem_t *sWriteEnd; static sem_t *sWriteEnd;
struct sigaction sa; struct sigaction sa;