diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2001-12-11 19:53:44 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2001-12-11 19:53:44 (GMT) |
commit | d28fd08f4a9593bd8bb51ebc17b8b6555b3885cd (patch) | |
tree | 61e5d32198fc92bdfb2b98115269991f3fadd53b /src/H5T.c | |
parent | 33ed41455eff31751d3d9d635140996ebbc61a4e (diff) | |
download | hdf5-d28fd08f4a9593bd8bb51ebc17b8b6555b3885cd.zip hdf5-d28fd08f4a9593bd8bb51ebc17b8b6555b3885cd.tar.gz hdf5-d28fd08f4a9593bd8bb51ebc17b8b6555b3885cd.tar.bz2 |
[svn-r4696]
Purpose:
Modify H5Fclose behavior
Description:
The HDF5 actual file close behaves in several ways in terms of if there
are still objects(dataset, group, datatype) opened in file.
Solution:
Added a new file access property, file close degree. It has four values,
H5F_CLOSE_DEFAULT
H5F_CLOSE_WEAK
H5F_CLOSE_SEMI
H5F_CLOSE_STRONG
The way a file is closed is decided by these values.
Platforms tested:
IRIX64 6.5, SunOS 5.6, FreeBSD 4.4
Diffstat (limited to 'src/H5T.c')
-rw-r--r-- | src/H5T.c | 33 |
1 files changed, 32 insertions, 1 deletions
@@ -1924,7 +1924,7 @@ done: *------------------------------------------------------------------------- */ static int -H5T_unlock_cb (void *_dt, const void * UNUSED key) +H5T_unlock_cb (void *_dt, hid_t id, const void * UNUSED key) { H5T_t *dt = (H5T_t *)_dt; @@ -7640,6 +7640,37 @@ H5T_entof (H5T_t *dt) } +/*------------------------------------------------------------------------- + * Function: H5T_is_immutable + * + * Purpose: Check is a datatype is immutable. + * + * Return: TRUE + * + * FALSE + * + * Programmer: Raymond Lu + * Friday, Dec 7, 2001 + * + * Modifications: + * + *------------------------------------------------------------------------- + */ +htri_t +H5T_is_immutable(H5T_t *dt) +{ + htri_t ret_value = FALSE; + + FUNC_ENTER(H5T_is_immutable, FAIL); + assert(dt); + + if(dt->state == H5T_STATE_IMMUTABLE) + ret_value = TRUE; + + FUNC_LEAVE(ret_value); +} + + /*-------------------------------------------------------------------------- NAME H5T_get_ref_type |