pthread_resume_np3
Resume suspended thread
Usage
#include <pthread_np.h>
int
pthread_resume_np(pthread_t tid);
Library
POSIX Threads Library (libpthread, -lpthread)
Overview
The pthread_resume_np() function, called on a suspended thread, causes it to resume. If a thread specified by the tid argument is not suspended, no actions will be performed.
Return values
If successful, pthread_resume_np() function returns 0. Otherwise, an error number is returned to indicate the error.
Errors
The pthread_resume_np() function will fail if:
- [EINVAL]
-
The value specified by the tid argument is invalid.
- [ESRCH]
-
No thread could be found corresponding to the thread ID specified by the tid argument.
Releases
59 releases since FreeBSD 4.8-RELEASE; the text changed 35 times.