diff options
author | David Young <dyoung@hdfgroup.org> | 2019-12-10 16:52:58 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2019-12-10 16:52:58 (GMT) |
commit | fed174988dc6eb9125adcf33b946be042d68cf1c (patch) | |
tree | 6a44d35cb945a2d1eda92f7598b26f725213eaf4 /src/H5private.h | |
parent | 38902de4932939e701f01219f4bff6d70b3953a7 (diff) | |
download | hdf5-fed174988dc6eb9125adcf33b946be042d68cf1c.zip hdf5-fed174988dc6eb9125adcf33b946be042d68cf1c.tar.gz hdf5-fed174988dc6eb9125adcf33b946be042d68cf1c.tar.bz2 |
Shorten the type name `H5F_vfd_swmr_eot_queue_entry_t` to `eot_queue_entry_t`:
people have to read and type this stuff!
Use TAILQ_* macros instead of an unnecessary custom implementation of
doubly-linked lists.
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5private.h b/src/H5private.h index cbdccce..e40e5c1 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -2116,10 +2116,10 @@ H5_DLL herr_t H5CX_pop(void); ; /* Do nothing: we are *re-*entering the API. */ \ } else if(err_occurred) { \ ; /* Do nothing: an error occurred. */ \ - } else if(vfd_swmr_eot_queue_head_g != NULL) { \ + } else if(TAILQ_FIRST(&eot_queue_g) != NULL) { \ const bool swmr_reader_exit = _swmr_reader_exit; \ struct timespec curr_time; \ - struct H5F_vfd_swmr_eot_queue_entry_t *init_eot_queue_head = vfd_swmr_eot_queue_head_g; \ + eot_queue_entry_t *init_eot_queue_head = TAILQ_FIRST(&eot_queue_g); \ do { \ if(HDclock_gettime(CLOCK_MONOTONIC, &curr_time) < 0) { \ HGOTO_ERROR(H5E_FUNC, H5E_CANTGET, err, \ @@ -2136,8 +2136,8 @@ H5_DLL herr_t H5CX_pop(void); "end of tick error for VFD SWMR reader") \ } else \ break; \ - } while ((vfd_swmr_eot_queue_head_g != NULL) && \ - (vfd_swmr_eot_queue_head_g != init_eot_queue_head)); \ + } while (TAILQ_FIRST(&eot_queue_g) != NULL && \ + TAILQ_FIRST(&eot_queue_g) != init_eot_queue_head); \ } \ /* Use this macro for all "normal" API functions */ |