Daniele Pistollato | 21 Jul 2012 00:17
Picon
Gravatar

Re: poll_interval and callbacks ...

Hi nate, i'm still having many issues reported by log4om users. Mainly
the program starts and then freezes (talking about rigctld.exe that
stop communicating with the rig and/or receives bad strings).

We already talked about that issue and the cache idea was born.

Question: are my troubles related in some manner with rigctld.exe?
Should i attempt direct connection linking the library or the result
is pretty the same?

73 daniele
IW3HMH

2012/7/20, Nate Bargmann <n0nb <at> n0nb.us>:
> * On 2012 20 Jul 07:38 -0500, Sagaert Johan wrote:
>>
>> Hi
>>
>> I downloaded the sources via GIT and looked into the ts950.c, the
>> callbacks are simply not used, neither is the poll_interval of any
>> use.
>>
>> It was a bit misleading I thought hamlib had an internal thread
>> polling for data and invoking the callback when something changed.
>> (maybe this is something for V3 ?)
>
> Sorry about being misled.  This is probably one of those "round tuits"
> that never came 'round.  ;-)
>
> I was puzzled at your reference of callbacks, but I understand now what
> you were asking about.
>
> We have discussed the idea of a library wide cache of sorts but no
> implementation exists as of yet.  It seems that adding polling would not
> be too hard and would probably allow multiple threads to access the
> cacged data safely.  This requires some thought and discussion.
>
>> So I will create a background thread with a mutexlock on the rig
>> structure pointer in case I send some command via one of the
>> functions.  I don't think hamlib is thread safe as it is.
>
> No, Hamlib is not thread safe, however, it should be safe to initialize
> different rig instances from separate threads/processes so that more
> than one device can be accessed at a time (on different ports).
>
> 73, de Nate >>
>
> --
>
> "The optimist proclaims that we live in the best of all
> possible worlds.  The pessimist fears this is true."
>
> Ham radio, Linux, bikes, and more: http://www.n0nb.us
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Hamlib-developer mailing list
> Hamlib-developer <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hamlib-developer
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

Gmane