File: pvm_gettid.3

package info (click to toggle)
pvm 3.4.6-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 8,280 kB
  • sloc: ansic: 72,074; makefile: 1,197; fortran: 631; sh: 282; csh: 74; asm: 37
file content (64 lines) | stat: -rw-r--r-- 1,258 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
59
60
61
62
63
64
.\" $Id: pvm_gettid.3,v 1.1 1996/09/23 22:01:30 pvmsrc Exp $
.TH GETTID 3PVM "30 August, 1993" "" "PVM Version 3.4"
.SH NAME
pvm_gettid \- Returns the tid of the process identified by a
group name and instance number.

.SH SYNOPSIS
.nf
.ft B
C	int tid = pvm_gettid( char *group, int inum )
.br

Fortran	call pvmfgettid( group, inum, tid )
.fi

.SH PARAMETERS
.IP group 0.8i
Character string that contains the name of an existing group.
.br
.IP inum
Integer instance number of the process in the group.
.br
.IP tid
Integer task identifier returned.

.SH DESCRIPTION
The routine
.I pvm_gettid
returns the tid of the PVM process
identified by the group name
.I group
and the instance number
.I inum.
If pvm_gettid is successful,
.I tid
will be > 0.
If some error occurs then
.I tid
will be < 0.

.SH EXAMPLES
.nf
C:
	  tid = pvm_gettid("worker",0);
.sp
Fortran:
	   CALL PVMFGETTID('worker',5,TID)
.fi

.SH ERRORS
These error conditions can be returned by
.I pvm_gettid.
.IP PvmSysErr
Can not contact the local pvmd; most likely it is not running.
.IP PvmBadParam
Bad Parameter most likely a NULL character string.
.IP PvmNoGroup
No group exists by that name.
.IP PvmNoInst
No such instance in the group.
.PP
.SH SEE ALSO
pvm_joingroup(3PVM),
pvm_getinst(3PVM)