source: proiecte/hpl/openmpi_compiled/share/man/man3/MPI_Win_lock.3 @ 97

Last change on this file since 97 was 97, checked in by (none), 14 years ago

Adding compiled files

File size: 3.0 KB
Line 
1.\"Copyright 2007-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_Win_lock 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_Win_lock\fP \- Starts an RMA access epoch locking access to a particular rank.
6
7.SH SYNTAX
8.ft R
9.SH C Syntax
10.nf
11#include <mpi.h>
12int MPI_Win_lock(int \fIlock_type\fP, int \fIrank\fP, int \fIassert\fP, MPI_Win \fIwin\fP)
13
14.SH Fortran Syntax
15.nf
16INCLUDE 'mpif.h'
17MPI_WIN_LOCK(\fILOCK_TYPE, RANK, ASSERT, WIN, IERROR\fP)
18        INTEGER \fILOCK_TYPE, RANK, ASSERT, WIN, IERROR\fP
19
20.SH C++ Syntax
21.nf
22#include <mpi.h>
23void MPI::Win::Lock(int \fIlock_type\fP, int \fIrank\fP, int \fIassert\fP) const
24
25.SH INPUT PARAMETERS
26.ft R
27.TP 1i
28lock_type
29Either MPI_LOCK_EXCLUSIVE or MPI_LOCK_SHARED (state). 
30.TP 1i
31rank
32Rank of locked window (nonnegative integer).
33.TP 1i
34assert
35Program assertion (integer).
36.TP 1i
37win
38Window object (handle).
39
40.SH OUTPUT PARAMETER
41.ft R
42.TP 1i
43IERROR
44Fortran only: Error status (integer).
45
46.SH DESCRIPTION
47.ft R
48Starts an RMA access epoch. Locks ensure that only the windows created by specific processes can be accessed by those processes (and by no other processes) during that epoch.
49.sp
50Locks are used to protect accesses to the locked target window effected by RMA calls issued between the lock and unlock call, and to protect local load/store accesses to a locked local window executed between the lock and unlock call.
51Accesses that are protected by an exclusive lock will not be concurrent at the window site with other accesses to the same window that are lock protected. Accesses that are protected by a shared lock will not be concurrent at the window site with accesses protected by an exclusive lock to the same window.
52.sp
53The \fIassert\fP argument is used to provide assertions on the context of the call that may be used for various optimizations. (See Section 6.4.4 of the MPI-2 Standard.) A value of \fIassert\fP = 0 is always valid.
54.sp
55.ft
56.SH NOTES
57.ft R
58In a client/server environment in which clients connect to
59a server and create windows that span both the client and the
60server, if a client or server that has obtained a lock
61on such a window and then terminates abnormally, the server or other clients
62may hang in a MPI_Win_lock call, failing to notice that the peer MPI job
63has terminated.
64
65.SH ERRORS
66Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. C++ functions do not return errors. If the default error handler is set to MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism will be used to throw an MPI:Exception object.
67.sp
68Before the error value is returned, the current MPI error handler is
69called. By default, this error handler aborts the MPI job, except for I/O function errors. The error handler may be changed with MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN may be used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error. 
70
71.SH See also
72MPI_Win_unlock
73.br
74
Note: See TracBrowser for help on using the repository browser.