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 /ntpshmread.c | |
parent | 8ac5097c3f7c70788d175933fcbf6ca65788f16b (diff) | |
download | gpsd-b852278f33d6b280eed4107301e73ece96080ee5.tar.gz |
Comment and documentation polishing.
Diffstat (limited to 'ntpshmread.c')
-rw-r--r-- | ntpshmread.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ntpshmread.c b/ntpshmread.c index 7ca18f2b..d230f663 100644 --- a/ntpshmread.c +++ b/ntpshmread.c @@ -85,9 +85,11 @@ enum segstat_t shm_query(/*@null@*/struct shmTime *shm_in, /*@out@*/struct shm_s cnt = shm->count; /* - * This is proof against concurrency issues if either - * (a) the memory_barrier() call works on this host, or - * (b) memset compiles to an uninterruptible single-instruction bitblt. + * This is proof against concurrency issues if either (a) the + * memory_barrier() call works on this host, or (b) memset + * compiles to an uninterruptible single-instruction bitblt (this + * will probably cease to be true if the structure exceeds your VM + * page size). */ memory_barrier(); memcpy((void *)&shmcopy, (void *)shm, sizeof(struct shmTime)); |