summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-04-21 19:17:15 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-04-21 19:17:15 (GMT)
commit1d9ab42c5716533e9bf58c678a5c8de1ede3f0a8 (patch)
treea39530f213e53c37c1e618280342889ebedcb4a1 /src/H5F.c
parentea51b2e095c2ffeedc8bb7fee7dd373905e1806d (diff)
downloadhdf5-1d9ab42c5716533e9bf58c678a5c8de1ede3f0a8.zip
hdf5-1d9ab42c5716533e9bf58c678a5c8de1ede3f0a8.tar.gz
hdf5-1d9ab42c5716533e9bf58c678a5c8de1ede3f0a8.tar.bz2
Add a second bool argument to H5F_vfd_swmr_writer_end_of_tick() that
tells whether the call may wait for the reader tick to catch up. Add stub routines vfd_swmr_writer_may_increase_tick_to() and vfd_swmr_reader_did_increase_tick_to() for tests---e.g., vfd_swmr_zoo_writer/_reader---to use to coordinate their tick numbers. vfd_swmr_writer_may_increase_tick_to(new_tick, wait_for_reader) returns true if the writer may increase its tick number to `new_tick` without overrunning the reader. A reader uses vfd_swmr_reader_did_increase_tick_to() to tell a writer that its tick number has increased.
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 144ffbe..70c0278 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -2046,7 +2046,7 @@ H5Fvfd_swmr_end_tick(hid_t file_id)
HGOTO_ERROR(H5E_FILE, H5E_BADVALUE, FAIL, "must have VFD SWMR configured for this public routine")
/* ??Trigger end of tick processing later */
- H5F_vfd_swmr_writer_end_of_tick(file);
+ H5F_vfd_swmr_writer_end_of_tick(file, true);
done:
FUNC_LEAVE_API(ret_value)