1
1

add volatile declaration to fifo_tmp casts.

This commit was SVN r5263.
Этот коммит содержится в:
Jeff Squyres 2005-04-11 19:27:06 +00:00
родитель 04f8ea3f29
Коммит 934f9513c0

Просмотреть файл

@ -423,7 +423,7 @@ int mca_ptl_sm_add_procs_same_base_addr(
ompi_atomic_unlock(&(my_fifos[j].head_lock));
ompi_atomic_unlock(&(my_fifos[j].tail_lock));
}
fifo_tmp=(ompi_fifo_t **)
fifo_tmp=(ompi_fifo_t * volatile *)
( (char *)(mca_ptl_sm_component.sm_ctl_header->fifo) +
(size_t)(mca_ptl_sm_component.sm_mpool->mpool_base()) );
/* RLG : need memory barrier */
@ -441,7 +441,7 @@ int mca_ptl_sm_add_procs_same_base_addr(
}
/* cache the pointers to the rest of the fifo arrays */
fifo_tmp=(ompi_fifo_t **)
fifo_tmp=(ompi_fifo_t * volatile *)
( (char *)(mca_ptl_sm_component.sm_ctl_header->fifo) +
(size_t)(mca_ptl_sm_component.sm_mpool->mpool_base()) );
for( j=mca_ptl_sm_component.num_smp_procs ; j <