diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2009-04-08 17:05:17 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2009-04-08 17:05:17 (GMT) |
commit | 48b127f628725a89a79dbaa95a784501383d6259 (patch) | |
tree | 87760c19fdc4e14403de440accc745ce5ee14b3d /src/H5.c | |
parent | 428a7c52435721d6a9e89ccdc4c1e8fe4060864a (diff) | |
download | hdf5-48b127f628725a89a79dbaa95a784501383d6259.zip hdf5-48b127f628725a89a79dbaa95a784501383d6259.tar.gz hdf5-48b127f628725a89a79dbaa95a784501383d6259.tar.bz2 |
[svn-r16699] Purpose: Fix bug 503
Description:
Changed Skip list package to use a deterministic skip list. This allows the
skip list package to avoid calling rand() and srand(), even on machines without
rand_r(). There is no longer a p-value or maximum level for skip lists.
Tested: jam, smirom, linew (h5committest)
Diffstat (limited to 'src/H5.c')
-rw-r--r-- | src/H5.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -28,6 +28,7 @@ #include "H5Lprivate.h" /* Links */ #include "H5Pprivate.h" /* Property lists */ #include "H5Tprivate.h" /* Datatypes */ +#include "H5SLprivate.h" /* Skip lists */ /****************/ @@ -270,6 +271,9 @@ H5_term_library(void) /* Don't shut down the ID code until other APIs which use them are shut down */ if(pending == 0) pending += DOWN(I); + /* Don't shut down the skip list code until everything that uses it is down */ + if(pending == 0) + pending += DOWN(SL); /* Don't shut down the free list code until _everything_ else is down */ if(pending == 0) pending += DOWN(FL); |