mqttreceiver added
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
#include <stdint.h>
|
||||
#include <pthread.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "ringbuffer.h"
|
||||
|
||||
@ -9,6 +10,7 @@ void ringbufferInit(t_ringbuffer *handle) {
|
||||
handle->bufferWriteIdx = 0;
|
||||
pthread_mutex_init(&(handle->eventMutex), NULL);
|
||||
pthread_cond_init(&(handle->eventSignal), NULL);
|
||||
fprintf(stderr, "ringbuffer initialized\n");
|
||||
}
|
||||
|
||||
void ringbufferPut(t_ringbuffer *handle, void *f) {
|
||||
|
Reference in New Issue
Block a user