tail head cat sleep
QR code linking to this page

Manual Pages  — PTHREAD_SUSPEND_ALL_NP

NAME

pthread_suspend_all_np – suspend all active threads

CONTENTS

LIBRARY

POSIX Threads Library (libpthread, -lpthread)

SYNOPSIS

#include <pthread_np.h>

void
pthread_suspend_all_np(void);

DESCRIPTION

The pthread_suspend_all_np() function causes all active threads to be suspended. The only exception is the current thread, the thread that called the pthread_suspend_all_np() function.

It is not safe for the caller of the pthread_suspend_all_np() function to use any non-async signal safe functions, besides pthread_resume_all_np(3), until threads are resumed, unless measures are taken to ensure that all threads are suspended at safe points.

SEE ALSO

pthread_np(3), pthread_resume_all_np(3), pthread_resume_np(3), pthread_suspend_np(3)

AUTHORS

This manual page was written by Alexey Zelkin <Mt phantom@FreeBSD.org>.

PTHREAD_SUSPEND_ALL_NP (3) October 12, 2021

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

“ Our grievance is not just against Unix itself, but against the cult of Unix zealots who defend and nurture it. They take the heat, disease, and pestilence as givens, and, as ancient shamans did, display their wounds, some self-inflicted, as proof of their power and wizardry. We aim, through bluntness and humor, to show them that they pray to a tin god, and that science, not religion, is the path to useful and friendly technology. ”
— The Unix Haters' handbook