gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] Minimum working example for libgps


From: Hal Murray
Subject: Re: [gpsd-dev] Minimum working example for libgps
Date: Mon, 06 Nov 2017 21:01:50 -0800

> I see no way around a main loop.  You need to keep polling gpsd.

A "main loop" makes sense if you have a typical GUI program.  (at least most 
of the time)  That's partly because most of the window system libraries are 
setup to expect that structure which allows call-backs without getting 
tangled in locks as long as you only have one thread.

But the OP said he didn't have a main loop and suggested a thread to poll 
gpsd.  That suggestion makes sense to me.


-- 
These are my opinions.  I hate spam.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]