win_lock Subroutine

private subroutine win_lock(this, rank, lock_type)

Type Bound

win_t

Arguments

Type IntentOptional Attributes Name
class(win_t), intent(in) :: this
integer, intent(in) :: rank
integer, intent(in), optional :: lock_type

Calls

proc~~win_lock~2~~CallsGraph proc~win_lock~2 win_t%win_lock mpi_win_lock mpi_win_lock proc~win_lock~2->mpi_win_lock

Variables

Type Visibility Attributes Name Initial
integer, private :: ierr
integer, private :: ltype

Source Code

   subroutine win_lock(this, rank, lock_type)
      class(win_t), intent(in) :: this
      integer, intent(in) :: rank
      integer, intent(in), optional :: lock_type
      integer :: ierr, ltype

      if (present(lock_type)) then
         ltype = lock_type
      else
         ltype = MPI_LOCK_SHARED
      end if

      call MPI_Win_lock(ltype, rank, 0_int32, this%m_win, ierr)
   end subroutine win_lock