DP_RESUME(2-N) SYSTEM CALLS DP_RESUME(2-N)
NAME
dp_resume -- resume a thread in the same MPPG
SYNOPSIS
#include <sys/mppg.h>
int dp_resume(int lnid, pid_t pid, id_t tid);
DESCRIPTION
dp_resume resumes a suspended thread. Both process of the
target thread and the calling process must belong to the
same MPPG.
lnid specifies the logical node number to which the target
thread belongs.
pid specifies the process ID in which the target thread
exists.
tid specifies the ID of the target thread.
dp_resume fails if one or more of the following are true:
[EINVAL] The calling process does not belong to an MPPG.
[EINVAL] The calling process has not changed the signal
mode by dp_cntl(2).
[ESRCH] No logical node can be found corresponding to
that specified by lnid.
[ESRCH] No process can be found corresponding to that
specified by pid.
[ESRCH] No thread can be found corresponding to that
specified by tid.
[EIO] There is no response from the node in which the
specified process exists.
SEE ALSO
dp_create(2), dp_join(2), dp_exit(2), dp_xmalloc(2),
dp_xmfree(2), dp_xmshare(2), dp_xmatt(2),
dp_cntl(2), dp_kill(2)
Global Memory in the SUPER-UX Programmer's Guide
DIAGNOSTICS
Upon successful completion, a value of 0 is returned. Oth-
erwise, a value of -1 is returned and errno is set to indi-
cate the error.
SUPER-UX Last change: Oct 13, 1999 1
DP_RESUME(2-N) SYSTEM CALLS DP_RESUME(2-N)
NOTES
tid must be a physical thread ID and this ID can be recog-
nized only by the thread library. In addition, the suspend-
ing facility only refers to the thread library. Therefore,
this call cannot be used in general.
SUPER-UX Last change: Oct 13, 1999 2
G1AB02E Programmer's Reference Manual