Source
72
72
/*****************************/
73
73
/* Library Private Variables */
74
74
/*****************************/
75
75
76
76
77
77
/*******************/
78
78
/* Local Variables */
79
79
/*******************/
80
80
81
81
82
+
•
83
+
/*-------------------------------------------------------------------------
84
+
* Function: H5EA__create_flush_depend
85
+
*
86
+
* Purpose: Create a flush dependency between two data structure components
87
+
*
88
+
* Return: Non-negative on success/Negative on failure
89
+
*
90
+
* Programmer: Quincey Koziol
91
+
* koziol@hdfgroup.org
92
+
* Mar 26 2009
93
+
*
94
+
*-------------------------------------------------------------------------
95
+
*/
96
+
BEGIN_FUNC(PKG, ERR,
97
+
herr_t, SUCCEED, FAIL,
98
+
H5EA__create_flush_depend(H5EA_hdr_t *hdr, H5AC_info_t *parent_entry,
99
+
H5AC_info_t *child_entry))
100
+
101
+
/* Sanity check */
102
+
HDassert(hdr);
103
+
HDassert(parent_entry);
104
+
HDassert(child_entry);
105
+
106
+
/* Create a flush dependency between parent and child entry */
107
+
if(H5AC_create_flush_dependency(hdr->f, parent_entry, child_entry) < 0)
108
+
H5E_THROW(H5E_CANTDEPEND, "unable to create flush dependency")
109
+
110
+
CATCH
111
+
112
+
END_FUNC(PKG) /* end H5EA__create_flush_depend() */
113
+
114
+
•
115
+
/*-------------------------------------------------------------------------
116
+
* Function: H5EA__destroy_flush_depend
117
+
*
118
+
* Purpose: Destroy a flush dependency between two data structure components
119
+
*
120
+
* Return: Non-negative on success/Negative on failure
121
+
*
122
+
* Programmer: Quincey Koziol
123
+
* koziol@hdfgroup.org
124
+
* Mar 26 2009
125
+
*
126
+
*-------------------------------------------------------------------------
127
+
*/
128
+
BEGIN_FUNC(PKG, ERR,
129
+
herr_t, SUCCEED, FAIL,
130
+
H5EA__destroy_flush_depend(H5EA_hdr_t *hdr, H5AC_info_t *parent_entry, H5AC_info_t *child_entry))
131
+
132
+
/* Sanity check */
133
+
HDassert(hdr);
134
+
HDassert(parent_entry);
135
+
HDassert(child_entry);
136
+
137
+
/* Destroy a flush dependency between parent and child entry */
138
+
if(H5AC_destroy_flush_dependency(hdr->f, parent_entry, child_entry) < 0)
139
+
H5E_THROW(H5E_CANTUNDEPEND, "unable to destroy flush dependency")
140
+
141
+
CATCH
142
+
143
+
END_FUNC(PKG) /* end H5EA__destroy_flush_depend() */
144
+