mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-08-07 01:13:18 +00:00
Fix incorrect definition/initialization of caches
This commit is contained in:
+7
-6
@@ -5,14 +5,15 @@
|
||||
typedef struct Queue_struct {
|
||||
uint8_t write;
|
||||
uint8_t read;
|
||||
uint8_t size;
|
||||
void *buf[];
|
||||
uint8_t size; // MUST be a power of 2 (qMask depends on it)
|
||||
void **buf; // size entries, owned by caller
|
||||
} Queue_t;
|
||||
|
||||
void constructQueue(Queue_t *q, void *buf, uint8_t size, uint8_t len,
|
||||
uint8_t constructFull);
|
||||
void constructEmptyQueue(Queue_t *q, uint8_t size, uint8_t len);
|
||||
void constructQueue(Queue_t *q, void **slots, void *items, uint8_t itemSize,
|
||||
uint8_t len, uint8_t constructFull);
|
||||
void constructEmptyQueue(Queue_t *q, void **slots, uint8_t len);
|
||||
uint8_t isEmpty(const Queue_t *q);
|
||||
inline void incrementRead(Queue_t *q) { q->read++; };
|
||||
uint8_t pushQueue(Queue_t *q, void *x);
|
||||
const void *peekQueue(const Queue_t *q);
|
||||
void *peekQueue(const Queue_t *q);
|
||||
void *popQueue(Queue_t *q);
|
||||
|
||||
Reference in New Issue
Block a user