diff options
Diffstat (limited to 'test/swmr_sparse_writer.c')
-rw-r--r-- | test/swmr_sparse_writer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/swmr_sparse_writer.c b/test/swmr_sparse_writer.c index d30c86d..5866b38 100644 --- a/test/swmr_sparse_writer.c +++ b/test/swmr_sparse_writer.c @@ -293,12 +293,14 @@ add_records(hid_t fid, unsigned verbose, unsigned long nrecords, unsigned long f } /* end if */
} /* end if */
+#ifdef OUT
/* Busy wait, to let readers catch up */
dummy = 0;
for(v=0; v<BUSY_WAIT; v++)
dummy++;
if((unsigned long)dummy != v)
return -1;
+#endif
} /* end for */
/* Close the memory dataspace */
@@ -415,6 +417,9 @@ int main(int argc, const char *argv[]) exit(1);
} /* end if */
+ /* Send a message to indicate "H5Fopen" is complete--releasing the file lock */
+ h5_send_message(WRITER_MESSAGE);
+
/* Emit informational message */
if(verbose)
fprintf(stderr, "Adding records\n");
|