diff options
author | Songyu Lu <songyulu@hdfgroup.org> | 2021-03-15 16:01:25 (GMT) |
---|---|---|
committer | Songyu Lu <songyulu@hdfgroup.org> | 2021-03-15 16:01:25 (GMT) |
commit | 20cbe6895872b162ca04ed371d211c8c5124e0db (patch) | |
tree | f45dc8124f621df4dffe4e2492523f9ffe7da822 /test | |
parent | 923e15b749a8a587cae3d0b738efd5f85bae30d3 (diff) | |
download | hdf5-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.c | 8 |
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, ¬ify, 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, ¬ify, 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, ¬ify, sizeof(int)) < 0) err(EXIT_FAILURE, "write failed"); } |