diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-03-06 07:14:40 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-03-06 07:14:40 -0500 |
commit | b852278f33d6b280eed4107301e73ece96080ee5 (patch) | |
tree | e854fc36fb0b8d073aa4b96c12fd0702af8503f4 /libgps.xml | |
parent | 8ac5097c3f7c70788d175933fcbf6ca65788f16b (diff) | |
download | gpsd-b852278f33d6b280eed4107301e73ece96080ee5.tar.gz |
Comment and documentation polishing.
Diffstat (limited to 'libgps.xml')
-rw-r--r-- | libgps.xml | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -150,7 +150,11 @@ function is a convenience wrapper around a <citerefentry><refentrytitle>select</refentrytitle><manvolnum>2</manvolnum></citerefentry> call, and zeros <varname>errno</varname> on entry; you can test <varname>errno</varname> after exit to get more information about -error conditions.</para> +error conditions. Warning: under the shared-memory interface there is +a tiny race window between <function>gps_waiting()</function> and a +following <function>gps_read()</function>; in that context, beause the +latter does not block, it is probably better to write a simple read +loop.</para> <para><function>gps_unpack()</function> parses JSON from the argument buffer into the target of the session structure pointer argument. |