pthread_lock_global_np man page on OSF1

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
OSF1 logo
[printable version]

pthread_lock_global_np(3)			     pthread_lock_global_np(3)

NAME
       pthread_lock_global_np - Locks the DECthreads global mutex

SYNOPSIS
       #include <pthread.h>

       int pthread_lock_global_np(
	       void );

LIBRARY
       DECthreads POSIX 1003.1c Library (libpthread.so)

STANDARDS
       None

PARAMETERS
       None

DESCRIPTION
       This  routine locks the DECthreads global mutex. If the global mutex is
       currently held by another thread when a thread calls this routine,  the
       calling	thread waits for the global mutex to become available and then
       locks it.

       The thread that has locked the global mutex becomes its	current	 owner
       and  remains the owner until the same thread has unlocked it. This rou‐
       tine returns with the global mutex in the locked	 state	and  with  the
       current thread as the global mutex's current owner.

       Use  the DECthreads global mutex when calling a library package that is
       not designed to run in a multithreaded environment. Unless the documen‐
       tation  for  a  library	function specifically states that it is thread
       safe, assume that it is not compatible; in other words,	assume	it  is
       nonreentrant.

       The  global mutex is one lock. Any code that calls any function that is
       not known to be reentrant should use the same lock. This prevents prob‐
       lems  resulting from dependencies among threads that call library func‐
       tions and those functions' calling other functions, and so on.

       The global mutex is a recursive mutex. A thread	that  has  locked  the
       global mutex can relock it without deadlocking. The locking thread must
       call pthread_unlock_global_np(3) as many times as it called  this  rou‐
       tine, to allow another thread to lock the global mutex.

RETURN VALUES
       If  an  error  condition	 occurs, this routine returns an integer value
       indicating the type of error. Possible return values  are  as  follows:
       Successful completion.

ERRORS
       None

SEE ALSO
       Functions: pthread_unlock_global_np(3)

       Manuals: Guide to DECthreads and Programmer's Guide

						     pthread_lock_global_np(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server OSF1

List of man pages available for OSF1

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