[svn-r962] Added #ifdef HAVE_PARALLEL to interprocess coordination in H5F_istore_allocate.

This commit is contained in:
Robert Kim Yates 1998-12-07 18:36:04 -05:00
parent 5ba9869b49
commit d0b9e6dd0a
2 changed files with 8 additions and 0 deletions

View File

@ -2123,6 +2123,7 @@ H5F_istore_allocate (H5F_t *f, const H5O_layout_t *layout,
* chunk.
*/
#ifdef HAVE_PARALLEL
/* rky 981207 Serialize access to this critical region. */
if (SUCCEED!=
H5PC_Wait_for_left_neighbor(f->shared->access_parms->u.mpio.comm))
@ -2130,6 +2131,7 @@ H5F_istore_allocate (H5F_t *f, const H5O_layout_t *layout,
HRETURN_ERROR (H5E_IO, H5E_WRITEERROR, FAIL,
"unable to lock the data chunk");
}
#endif
if (NULL==(chunk=H5F_istore_lock (f, layout, split_ratios, pline,
fill, chunk_offset, FALSE,
&idx_hint))) {
@ -2142,12 +2144,14 @@ H5F_istore_allocate (H5F_t *f, const H5O_layout_t *layout,
HRETURN_ERROR (H5E_IO, H5E_WRITEERROR, FAIL,
"uanble to unlock raw data chunk");
}
#ifdef HAVE_PARALLEL
if (SUCCEED!=
H5PC_Signal_right_neighbor(f->shared->access_parms->u.mpio.comm))
{
HRETURN_ERROR (H5E_IO, H5E_WRITEERROR, FAIL,
"unable to unlock the data chunk");
}
#endif
#ifdef NO
} else {
#ifdef AKC

View File

@ -2123,6 +2123,7 @@ H5F_istore_allocate (H5F_t *f, const H5O_layout_t *layout,
* chunk.
*/
#ifdef HAVE_PARALLEL
/* rky 981207 Serialize access to this critical region. */
if (SUCCEED!=
H5PC_Wait_for_left_neighbor(f->shared->access_parms->u.mpio.comm))
@ -2130,6 +2131,7 @@ H5F_istore_allocate (H5F_t *f, const H5O_layout_t *layout,
HRETURN_ERROR (H5E_IO, H5E_WRITEERROR, FAIL,
"unable to lock the data chunk");
}
#endif
if (NULL==(chunk=H5F_istore_lock (f, layout, split_ratios, pline,
fill, chunk_offset, FALSE,
&idx_hint))) {
@ -2142,12 +2144,14 @@ H5F_istore_allocate (H5F_t *f, const H5O_layout_t *layout,
HRETURN_ERROR (H5E_IO, H5E_WRITEERROR, FAIL,
"uanble to unlock raw data chunk");
}
#ifdef HAVE_PARALLEL
if (SUCCEED!=
H5PC_Signal_right_neighbor(f->shared->access_parms->u.mpio.comm))
{
HRETURN_ERROR (H5E_IO, H5E_WRITEERROR, FAIL,
"unable to unlock the data chunk");
}
#endif
#ifdef NO
} else {
#ifdef AKC