mirror of
https://github.com/Hamlib/Hamlib
synced 2026-08-13 17:32:05 -04:00
Make fifo.c thread safe
This commit is contained in:
parent
006f724dae
commit
ddb128bbf7
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue