pthread_switch_add_np man page on PC-BSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
PC-BSD logo
[printable version]

PTHREAD_SWITCH_ADD_NP(3) BSD Library Functions Manual PTHREAD_SWITCH_ADD_NP(3)

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 respec‐
     tively.

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() func‐
			tion.

SEE ALSO
     pthread_create(3)

AUTHORS
     This manual page was written by Alexey Zelkin ⟨phantom@FreeBSD.org⟩.

BSD			       February 13, 2003			   BSD
[top]

List of man pages available for PC-BSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net