| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(win_t), | intent(in) | :: | this | |||
| integer(kind=int32), | intent(in) | :: | rank | |||
| integer(kind=int32), | intent(in), | optional | :: | lock_type |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer(kind=int32), | private | :: | ierr | ||||
| integer(kind=int32), | private | :: | ltype |
subroutine win_lock(this, rank, lock_type) class(win_t), intent(in) :: this integer(int32), intent(in) :: rank integer(int32), intent(in), optional :: lock_type integer(int32) :: ierr, ltype ! A single rank has no peer. Reaching this means the caller ! did not take its `size() == 1` path -- which is a bug worth ! stopping for, not one to hide by returning quietly. error stop "pic_mpi_serial: win_lock needs a peer rank" end subroutine win_lock