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_SUSPEND_NP(3) FreeBSD Library Functions Manual PTHREAD_SUSPEND_NP(3)

pthread_suspend_np
suspend a thread

POSIX Threads Library (libpthread, -lpthread)

#include <pthread_np.h>

int
pthread_suspend_np(pthread_t tid);

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

It is not safe for the caller of the pthread_suspend_np() function to use any non-async signal safe functions, except pthread_resume_np(3), until suspended thread is resumed, unless measures are taken to ensure that the thread is suspended at a safe point.

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

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

pthread_np(3), pthread_resume_all_np(3), pthread_resume_np(3), pthread_suspend_all_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.