pthread_attr_setcreatesuspend_np3
Prepare attribute for creation of suspended thread
Usage
#include <pthread_np.h>
int
pthread_attr_setcreatesuspend_np(pthread_attr_t *attr);
Library
POSIX Threads Library (libpthread, -lpthread)
Overview
The pthread_attr_setcreatesuspend_np() instructs pthread_create(3) that the thread created with the attr attribute should be created and left in a suspended state until explicitly resumed by the call to pthread_resume_np() or pthread_resume_all_np().
Return values
The pthread_attr_setcreatesuspend_np() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error.
Errors
The pthread_attr_setcreatesuspend_np() function will fail if:
- [EINVAL]
-
The value specified by attr is invalid.
Releases
59 releases since FreeBSD 4.8-RELEASE; the text changed 35 times.