The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

pthread_switch_delete_np (3)
  • >> pthread_switch_delete_np (3) ( FreeBSD man: Библиотечные вызовы )

  • BSD mandoc
     

    NAME

    
    
    pthread_switch_add_np
    
     
    pthread_switch_delete_np
    
     - thread context switches debugging primitives
    
     
    

    LIBRARY

    Lb libpthread
    
     
    

    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_create3 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:

    Bq Er EINVAL
    NULL pointer was passed in the Fa routine argument.

    The pthread_switch_delete_np ();
    may fail if:

    Bq Er EINVAL
    The Fa routine argument is different from the argument previously passed to the pthread_switch_add_np ();
    function.

     

    SEE ALSO

    pthread_create3  

    AUTHORS

    This manual page was written by An Alexey Zelkin Aq phantom@FreeBSD.org .


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ERRORS
    SEE ALSO
    AUTHORS


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру