File: pvm_setmwid.3

package info (click to toggle)
pvm 3.4beta6-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 5,168 kB
  • ctags: 5,872
  • sloc: ansic: 65,239; makefile: 1,405; fortran: 631; sh: 417; csh: 67; asm: 37
file content (58 lines) | stat: -rw-r--r-- 1,352 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.\" $Id: pvm_setmwid.3,v 1.1 1996/09/23 22:06:16 pvmsrc Exp $
.TH SETMWID 3PVM "18 May, 1994" "" "PVM Version 3.4"
.SH NAME
pvm_getmwid,
pvm_setmwid \- Get or set wait ID of a message.
.br
[In Version 3.4: Relaced by pvm_getminfo and pvm_setminfo]

.SH SYNOPSIS
.nf
.ft B
C	int info = pvm_getmwid( int bufid )
.br
	int info = pvm_setmwid( int bufid, int waitid )
.br

Fortran	Not Available
.fi

.SH PARAMETERS
.IP bufid 0.8i
Message buffer identifier.
.IP waitid
Wait identifier number.

.SH DESCRIPTION
A wait identifier is part of a message (like the source,
destination, tag and body).
It is used to match a reply to the corresponding request.

The default wait ID for a message is zero (none).

pvm_getmwid returns the wait ID associated with a message buffer,
or a negative error code.

pvm_setmwid assigns a new wait ID to a message buffer.
It returns PvmOk unless an error occurs.

.SH EXAMPLES
.nf
	int src, tag;

	pvm_recv(-1, -1);
	/* ... process, compose reply message */
	pvm_setmwid(pvm_getsbuf(), pvm_getmwid(pvm_getrbuf()));
	pvm_bufinfo(pvm_getrbuf(), (int *)0, &tag, &src);
	pvm_send(src, tag);

.SH ERRORS
The following error conditions can be returned by
pvm_getmwid or pvm_setmwid:
.IP PvmBadParam
Invalid value for \fIbufid\fR argument.
.IP PvmNoSuchBuf
Message buffer \fIbufid\fR doesn't exist.
.PP
.SH SEE ALSO
pvm_bufinfo(3PVM)