cleard and moved includes to header
This commit is contained in:
1 parent
11146fb632
commit
69d537bddd
2 files changed
+4
-11
No files matched your search
@@ -1,14 +1,3 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef RINGBUFFER_THREAD_SAFE
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
#include "ringbuffer.h"
|
||||
|
||||
void _ringBufferIncReader(struct ringBuffer *buf) {
|
||||
buf->reader += buf->blockSize;
|
||||
if (buf->reader >= buf->buffer + buf->blocks * buf->blockSize) {
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef RINGBUFFER_THREAD_SAFE
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
struct ringBuffer {
|
||||
void *buffer;
|
||||
|
||||
Reference in new issue
Block a user