|Subject:||Re: thread safe usage of multiple phones|
|Date:||Tue, 18 Apr 2017 16:50:52 +0200|
Well, for me personally it is quite nice surprise that in the age of
smartphones and API to everything gnokii is still being used :)
I do not know how it would behave right now but years ago USB link was
much less reliable than serial one. To translate it to actions: it
required restarting gnokii or even phone sometimes.
I have looked quickly into the code. In gsm-sms.c just
sms_timestamp_print() seems to be thread non-safe (just in DEBUG mode)
> Can I call gn_sms_send(data1, state1) and gn_sms_send(data2, state2)
> in two threads?
If you do the preparation by yourself, I think that would work fine.
But it would be the best just to try it out. Looks like 1-day
Do you know how to dinstinguish between phones? One queue or multiple queues?
> gn_sms_send(data, &state);
> Any ideas or suggestions?
The easiest way (that is using gnokii in non-modified form) would be
to run multiple gnokii (or smsd) instances. And then feed them with
round-robin or so.
|[Prev in Thread]||Current Thread||[Next in Thread]|