make ringbuffer thread safety optional

This commit is contained in:
2025-05-25 15:27:00 +02:00
parent 52e2c96e0e
commit 11146fb632
3 changed files with 22 additions and 2 deletions

View File

@ -1,3 +1,5 @@
#define RINGBUFFER_THREAD_SAFE
#include <linux/i2c-dev.h>
#include <i2c/smbus.h>
#include <sys/ioctl.h>
@ -9,7 +11,6 @@
#include <stdint.h>
#include <stdarg.h>
#include <stdlib.h>
#include <pthread.h>
#include "global.h"
#include "ringbuffer.h"