MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Standard C Library Functions        pthreadcondattrgetclock(3C)



NAME
     pthreadcondattrgetclock, pthreadcondattrsetclock  -  get
     and set the clock selection condition variable attribute

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

     int pthreadcondattrgetclock(
          const pthreadcondattrt *restrict attr,
          clockidt *restrict clockid);


     int pthreadcondattrsetclock(pthreadcondattrt *attr
           clockidt clockid);


DESCRIPTION
     The pthreadcondattrgetclock() function obtains  the  value
     of the clock attribute from the attributes object referenced
     by attr. The pthreadcondattrsetclock() function  sets  the
     clock  attribute  in an initialized attributes object refer-
     enced by attr. If pthreadcondattrsetclock() is called with
     a  clockid  argument  that  refers to a CPU-time clock, the
     call fails.


     The clock attribute is the clock ID of  the  clock  that  is
     used     to     measure     the     timeout    service    of
     pthreadcondtimedwait(3C). The default value of  the  clock
     attribute refers to the system clock.

RETURN VALUES
     Upon successful completion, the  pthreadcondattrgetclock()
     function  returns 0 and stores the value of the clock attri-
     bute of attr into the  object  referenced  by  the  clockid
     argument. Otherwise, an error number is returned to indicate
     the error.


     Upon successful completion, the  pthreadcondattrsetclock()
     function  returns  0. Otherwise, an error number is returned
     to indicate the error.

ERORS
     These functions may fail if:

     EINVAL    The value specified by attr is invalid.







SunOS 5.11          Last change: 30 Jan 2004                    1






Standard C Library Functions        pthreadcondattrgetclock(3C)



     The pthreadcondattrsetclock() function may fail if:

     EINVAL    The value specified by clockid does not refer  to
               a known clock, or is a CPU-time clock.


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



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Standard                    
    
     MT-Level                     MT-Safe                     
    


SEE ALSO
     pthreadcondinit(3C),           pthreadcondtimedwait(3C),
     pthreadcondattrdestroy(3C),
     pthreadcondattrgetpshared(3C),         pthreadcreate(3C),
     pthreadmutexinit(3C), attributes(5), standards(5)





























SunOS 5.11          Last change: 30 Jan 2004                    2



OpenSolaris man pages main menu

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