Make fifo.c thread safe

pull/1354/head
Mike Black W9MDB 2023-07-30 07:55:28 -05:00
rodzic 006f724dae
commit ddb128bbf7
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -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;