cleard to much? I am confused
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
#include "ringbuffer.h"
|
||||
|
||||
void _ringBufferIncReader(struct ringBuffer *buf) {
|
||||
buf->reader += buf->blockSize;
|
||||
if (buf->reader >= buf->buffer + buf->blocks * buf->blockSize) {
|
||||
|
@ -1,4 +1,6 @@
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef RINGBUFFER_THREAD_SAFE
|
||||
#include <pthread.h>
|
||||
|
Reference in New Issue
Block a user