MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Threads Debugging Library Functions    tdtamapaddr2sync(3CDB)



NAME
     tdtamapaddr2sync - get a  synchronization  object  handle
     from a synchronization object's address

SYNOPSIS
     cc [ flag... ] file... -lcdb [ library... ]
     #include 
     #include 

     tdtamapaddr2sync(const tdthragentt *tap, psaddrt addr, tdsynchandlet *shp);


DESCRIPTION
     The tdtamapaddr2sync() function produces the synchroniza-
     tion  object handle of type tdsynchandlet that corresponds
     to the address of the synchronization object  (mutex,  sema-
     phore,  condition  variable,  or  reader/writer  lock). Some
     effort is made to validate addr  and  verify  that  it  does
     indeed  point  at  a  synchronization  object. The handle is
     returned in *shp.

RETURN VALUES
     TDOK        The call completed successfully.


     TDBADTA     An invalid internal process handle was passed.


     TDBADPH     There is a NUL external process handle associ-
                  ated with this internal process handle.


     TDBADSH     The shp argument is  NUL  or  addr  does  not
                  appear  to  point  to  a  valid synchronization
                  object.


     TDBER     A call to one of the  imported  interface  rou-
                  tines failed.


     TDER       addr is  NUL,  or  a  libcdb  internal  error
                  occurred.


ATRIBUTES
     See attributes(5) for description of  the  following  attri-
     butes:







SunOS 5.11          Last change: 20 Oct 1998                    1






Threads Debugging Library Functions    tdtamapaddr2sync(3CDB)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     MT-Level                     Safe                        
    


SEE ALSO
     libcdb(3LIB), attributes(5)














































SunOS 5.11          Last change: 20 Oct 1998                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™