The OpenNET Project / Index page

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

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

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

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

  • BSD mandoc
     

    NAME

    
    
    pthread_once
    
     - dynamic package initialization
    
     
    

    LIBRARY

    Lb libpthread
    
     
    

    SYNOPSIS

       #include <pthread.h>

    pthread_once_t Fa once_control = PTHREAD_ONCE_INIT; int pthread_once (pthread_once_t *once_control void (*init_routine)(void));
     

    DESCRIPTION

    The first call to pthread_once ();
    by any thread in a process, with a given Fa once_control , will call the init_routine ();
    with no arguments. Subsequent calls to pthread_once ();
    with the same Fa once_control will not call the init_routine (.);
    On return from pthread_once (,);
    it is guaranteed that init_routine ();
    has completed. The Fa once_control parameter is used to determine whether the associated initialization routine has been called.

    The function pthread_once ();
    is not a cancellation point. However, if init_routine ();
    is a cancellation point and is cancelled, the effect on Fa once_control is as if pthread_once ();
    was never called.

    The constant Fa PTHREAD_ONCE_INIT is defined by header In pthread.h .

    The behavior of pthread_once ();
    is undefined if Fa once_control has automatic storage duration or is not initialized by Fa PTHREAD_ONCE_INIT .  

    RETURN VALUES

    If successful, the pthread_once ();
    function will return zero. Otherwise an error number will be returned to indicate the error.  

    ERRORS

    None.  

    STANDARDS

    The pthread_once ();
    function conforms to St -p1003.1-96 .


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ERRORS
    STANDARDS


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




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

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