Make fifo.c thread safe

This commit is contained in:
Mike Black W9MDB 2023-07-30 07:55:28 -05:00
parent 006f724dae
commit ddb128bbf7

View file

@ -137,6 +137,11 @@ typedef struct
int head;
int tail;
int flush; // flush flag for stop_morse
#if _PTHREAD_H
pthread_mutex_t mutex;
#else
int mutex;
#endif
} FIFO_RIG;