summaryrefslogtreecommitdiff
path: root/libgps_shm.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-06-30 07:52:35 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-06-30 07:52:35 -0400
commit3bbc4988a8cc1e9bedc34e4bda6e7e7f76140cf9 (patch)
treed31994ff887d43681d0469a641a6b6e62f9196c6 /libgps_shm.c
parentcfb5daa16285c63739384dcf256a44b2134e7828 (diff)
downloadgpsd-3bbc4988a8cc1e9bedc34e4bda6e7e7f76140cf9.tar.gz
Comment fix.
Diffstat (limited to 'libgps_shm.c')
-rw-r--r--libgps_shm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgps_shm.c b/libgps_shm.c
index ba6e5d49..c14ef4ea 100644
--- a/libgps_shm.c
+++ b/libgps_shm.c
@@ -66,8 +66,8 @@ int gps_shm_read(struct gps_data_t *gpsdata)
/*
* Following block of instructions must not be reordered, otherwise
- * havoc will ensue. asm volatile("sfence") is a GCCism intended
- * to prevent reordering.
+ * havoc will ensue. The barrier() call should prevent reordering
+ * of the data accesses.
*
* This is a simple optimistic-concurrency technique. We wrote
* the second bookend first, then the data, then the first bookend.