Add new variable for CIRC_BUF_SIZE
This commit is contained in:
parent
1fbd1bf2b8
commit
ed71c16797
3
common.h
3
common.h
@ -35,12 +35,13 @@
|
|||||||
#define SEM_WRITE_END "/sem_write_end_01527193"
|
#define SEM_WRITE_END "/sem_write_end_01527193"
|
||||||
|
|
||||||
#define MAX_ITEMS 16
|
#define MAX_ITEMS 16
|
||||||
|
#define CIRC_BUF_SIZE 17
|
||||||
|
|
||||||
struct circ_buf {
|
struct circ_buf {
|
||||||
int quit;
|
int quit;
|
||||||
int head;
|
int head;
|
||||||
int tail;
|
int tail;
|
||||||
int data[MAX_ITEMS+1];
|
int data[CIRC_BUF_SIZE];
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* ifndef COMMON_H */
|
#endif /* ifndef COMMON_H */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user