kopia lustrzana https://github.com/Hamlib/Hamlib
Add rig_lock and pthread mutex for multicast
https://github.com/Hamlib/Hamlib/issues/695pull/1289/head^2
rodzic
fc96ec0874
commit
26aa57aded
|
@ -2488,6 +2488,8 @@ struct multicast_s
|
||||||
int seqnumber;
|
int seqnumber;
|
||||||
int runflag; // = 0;
|
int runflag; // = 0;
|
||||||
pthread_t threadid;
|
pthread_t threadid;
|
||||||
|
pthread_mutex_t mutex;
|
||||||
|
int mutex_initialized;
|
||||||
//#ifdef HAVE_ARPA_INET_H
|
//#ifdef HAVE_ARPA_INET_H
|
||||||
struct ip_mreq mreq; // = {0};
|
struct ip_mreq mreq; // = {0};
|
||||||
struct sockaddr_in dest_addr; // = {0};
|
struct sockaddr_in dest_addr; // = {0};
|
||||||
|
@ -2716,6 +2718,9 @@ extern HAMLIB_EXPORT(int) rig_open HAMLIB_PARAMS((RIG *rig));
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rig_flush(hamlib_port_t *port);
|
rig_flush(hamlib_port_t *port);
|
||||||
|
|
||||||
|
extern HAMLIB_EXPORT(void)
|
||||||
|
rig_lock(RIG *rig, int lock);
|
||||||
|
|
||||||
#if BUILTINFUNC
|
#if BUILTINFUNC
|
||||||
#define rig_set_freq(r,v, f) rig_set_vfo(r,v,f,__builtin_FUNCTION())
|
#define rig_set_freq(r,v, f) rig_set_vfo(r,v,f,__builtin_FUNCTION())
|
||||||
#else
|
#else
|
||||||
|
|
Ładowanie…
Reference in New Issue