*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> pthread_delay_np (3)              
Title
Content
Arch
Section
 

pthread_delay_np(3)

Contents


NAME    [Toc]    [Back]

       pthread_delay_np - Delays a thread's execution

SYNOPSIS    [Toc]    [Back]

       #include <pthread.h>

       int pthread_delay_np(
               const struct timespec *interval );

LIBRARY    [Toc]    [Back]

       DECthreads POSIX 1003.1c Library (libpthread.so)

STANDARDS    [Toc]    [Back]

       None

PARAMETERS    [Toc]    [Back]

       Number  of seconds and nanoseconds to delay execution. The
       value specified for each must be greater than or equal  to
       zero.

DESCRIPTION    [Toc]    [Back]

       This routine causes a thread to delay execution for a specific
 interval of time. This interval ends at the  current
       time  plus  the  specified  interval. The routine will not
       return before the end of the interval is reached, but  may
       return  an  arbitrary  amount of time after the end of the
       interval is reached. This  can  be  due  to  system  load,
       thread priorities, and system timer granularity.

       Specifying  an  interval  of zero (0) seconds and zero (0)
       nanoseconds is allowed and can be used to force the thread
       to give up the processor or to deliver a pending cancellation
 request.

       The timespec structure contains the following two  fields:
       tv_sec  is  an  integral number of seconds.  tv_nsec is an
       integral number of nanoseconds.

RETURN VALUES    [Toc]    [Back]

       If an error condition  occurs,  this  routine  returns  an
       integer  value  indicating  the  type  of  error. Possible
       return values are as follows: Successful completion.   The
       value specified by interval is invalid.

ERRORS    [Toc]    [Back]

       None

SEE ALSO    [Toc]    [Back]

      
      
       Manuals: Guide to DECthreads and Programmer's Guide



                                              pthread_delay_np(3)
[ Back ]
 Similar pages
Name OS Title
pxfsleep IRIX Delays process execution
pthread_cancel Tru64 Allows a thread to request a thread to terminate execution
pthread_cancel FreeBSD cancel execution of a thread
pthread_cancel OpenBSD cancel execution of a thread
aio_monitor_run_sec HP-UX frequency of AIO thread pool monitor execution (in seconds)
thread_terminate Tru64 General: Prepares to stop or stops execution of the specified kernel thread
DELAY Tru64 General: Delays the calling routine a specified number of microseconds
pthread_setspecific Tru64 Sets the thread-specific data value associated with the specified key for the current thread
pthread_join Tru64 Causes the calling thread to wait for the termination of the specified thread
pthread_getname_np Tru64 Obtain the object name from the thread object of an existing thread
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service