Semaphores static again
This commit is contained in:
parent
255708ebc0
commit
8277a26ed2
2
common.h
2
common.h
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user