*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: pthread_switch_add_np | Section: 3 | Source: FreeBSD | File: pthread_switch_add_np.3.gz
PTHREAD_SWITCH_ADD_NP(3) FreeBSD Library Functions Manual NAME pthread_switch_add_np, pthread_switch_delete_np - thread context switches debugging primitives LIBRARY POSIX Threads Library (libpthread, -lpthread) SYNOPSIS #include <pthread_np.h> int pthread_switch_add_np(pthread_switch_routine_t routine); int pthread_switch_delete_np(pthread_switch_routine_t routine); DESCRIPTION An application is allowed to monitor the thread context switches inside the threading library. An application can install a routine that gets called every time a thread (explicitly created by an application with the pthread_create(3) function) gets the context switched. The routine is passed the thread IDs of the threads that are being switched in and out. Installation and removal of these hooks may be done using the pthread_switch_add_np() and pthread_switch_delete_np() functions respectively. RETURN VALUES If successful, these functions return 0. Otherwise, an error number is returned to indicate the error. ERRORS The pthread_switch_add_np() may fail if: [EINVAL] NULL pointer was passed in the routine argument. The pthread_switch_delete_np() may fail if: [EINVAL] The routine argument is different from the argument previously passed to the pthread_switch_add_np() function. SEE ALSO pthread_create(3), pthread_np(3) AUTHORS This manual page was written by Alexey Zelkin <[email protected]>. FreeBSD 14.1-RELEASE-p8 October 12, 2021 FreeBSD 14.1-RELEASE-p8

Navigation Options