EN JA
PTHREAD_SUSPEND_NP(3)
PTHREAD_SUSPEND_NP(3) FreeBSD Library Functions Manual PTHREAD_SUSPEND_NP(3)

NAME

pthread_suspend_npsuspend a thread

LIBRARY

POSIX Threads Library (libpthread, -lpthread)

SYNOPSIS

#include < pthread_np.h>

int
pthread_suspend_np( pthread_t tid);

DESCRIPTION

The pthread_suspend_np() function, called on an active thread, causes it to suspend.

RETURN VALUES

If successful, pthread_suspend_np() function returns 0. Otherwise, an error number is returned to indicate the error.

ERRORS

The pthread_suspend_np() function will fail if:
[ EDEADLK]
An attempt was made to suspend the current thread.
[ EINVAL]
The value specified by the tid argument is invalid.
[ESRC]
No thread could be found corresponding to the thread ID specified by the tid argument.

AUTHORS

This manual page was written by Alexey Zelkin <phantom@FreeBSD.org>.
February 13, 2003 FreeBSD