summaryrefslogtreecommitdiff
path: root/shmexport.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-06 08:23:00 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-06 08:23:00 -0500
commit783cc0486f5b4994807da44eff7e22efcc173c5a (patch)
tree0e92ee4d63b1e8d5b6725a3810cdf44a080dec72 /shmexport.c
parent4173fa3c919d309b8223ba5bfb424c3e3cb92baf (diff)
downloadgpsd-783cc0486f5b4994807da44eff7e22efcc173c5a.tar.gz
Clarifying name change. All regression test pass. PPS is live.
Diffstat (limited to 'shmexport.c')
-rw-r--r--shmexport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shmexport.c b/shmexport.c
index 1baadd4e..3b764b57 100644
--- a/shmexport.c
+++ b/shmexport.c
@@ -80,17 +80,17 @@ void shm_update(struct gps_context_t *context, struct gps_data_t *gpsdata)
* get clobbered first and the data can be detected as bad.
*/
shared->bookend2 = tick;
- barrier();
+ memory_barrier();
memcpy((void *)(context->shmexport + offsetof(struct shmexport_t, gpsdata)),
(void *)gpsdata,
sizeof(struct gps_data_t));
- barrier();
+ memory_barrier();
#ifndef USE_QT
shared->gpsdata.gps_fd = SHM_PSEUDO_FD;
#else
shared->gpsdata.gps_fd = (void *)(intptr_t)SHM_PSEUDO_FD;
#endif /* USE_QT */
- barrier();
+ memory_barrier();
shared->bookend1 = tick;
}
}