summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSongyu Lu <songyulu@hdfgroup.org>2021-03-15 16:01:25 (GMT)
committerSongyu Lu <songyulu@hdfgroup.org>2021-03-15 16:01:25 (GMT)
commit20cbe6895872b162ca04ed371d211c8c5124e0db (patch)
treef45dc8124f621df4dffe4e2492523f9ffe7da822 /test
parent923e15b749a8a587cae3d0b738efd5f85bae30d3 (diff)
downloadhdf5-20cbe6895872b162ca04ed371d211c8c5124e0db.zip
hdf5-20cbe6895872b162ca04ed371d211c8c5124e0db.tar.gz
hdf5-20cbe6895872b162ca04ed371d211c8c5124e0db.tar.bz2
Adding more comments.
Diffstat (limited to 'test')
-rw-r--r--test/vfd_swmr_group_writer.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/vfd_swmr_group_writer.c b/test/vfd_swmr_group_writer.c
index a3b1833..5e01c4e 100644
--- a/test/vfd_swmr_group_writer.c
+++ b/test/vfd_swmr_group_writer.c
@@ -334,7 +334,7 @@ main(int argc, char **argv)
errx(EXIT_FAILURE, "fifo_reader_to_writer open failed");
if (writer) {
- /* Writer tells reader to start */
+ /* Writer tells reader to start verification */
if (HDwrite(fd_writer_to_reader, &notify, sizeof(int)) < 0)
err(EXIT_FAILURE, "write failed");
@@ -357,7 +357,8 @@ main(int argc, char **argv)
H5Aexists(s.file, "nonexistent");
}
- /* Receive the same value from the reader and verify it */
+ /* Receive the same value from the reader and verify it before
+ * going to the next step */
verify++;
if (HDread(fd_reader_to_writer, &notify, sizeof(int)) < 0)
err(EXIT_FAILURE, "read failed");
@@ -393,7 +394,8 @@ main(int argc, char **argv)
if (notify != verify)
errx(EXIT_FAILURE, "received message %d, expecting %d", notify, verify);
- /* Send back the same nofity value for acknowledgement */
+ /* Send back the same nofity value for acknowledgement to tell the writer
+ * move to the next step */
if (HDwrite(fd_reader_to_writer, &notify, sizeof(int)) < 0)
err(EXIT_FAILURE, "write failed");
}