GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PTHREAD_ATTR_SETCREATESUSPEND_NP(3) FreeBSD Library Functions Manual PTHREAD_ATTR_SETCREATESUSPEND_NP(3)

pthread_attr_setcreatesuspend_np
prepare attribute for creation of suspended thread

POSIX Threads Library (libpthread, -lpthread)

#include <pthread_np.h>

int
pthread_attr_setcreatesuspend_np(pthread_attr_t *attr);

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().

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.

The pthread_attr_setcreatesuspend_np() function will fail if:
[]
The value specified by attr is invalid.

pthread_attr_destroy(3), pthread_attr_init(3), pthread_create(3), pthread_np(3), pthread_resume_all_np(3), pthread_resume_np(3)

This manual page was written by Alexey Zelkin <phantom@FreeBSD.org>.
October 12, 2021 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.