Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pthread_delay_np(3-thr) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

pthread_delay_np(3-thr)                             pthread_delay_np(3-thr)

NAME
     pthreaddelaynp - causes a thread to wait for a specified period

SYNOPSIS
     #include <pthread.h>

     int pthreaddelaynp(struct timespec *interval);

PARAMETERS
     interval  Number of seconds and nanoseconds that the calling thread
               waits before continuing execution. The value specified must
               be greater than or equal to 0 (zero).

DESCRIPTION
     The pthreaddelaynp() routine causes a thread to delay execution for
     a specified period of elapsed wall clock time. The period of time the
     thread waits is at least as long as the number of seconds and
     nanoseconds specified in the interval parameter.

     Specifying an interval of 0 (zero) seconds and 0 (zero) nanoseconds is
     allowed and can result in the thread giving up the processor or
     delivering a pending cancel.

     The struct timespec structure contains two fields, as follows:

     -  The tvsec field is an integer number of seconds.

     -  The tvnsec field is an integer number of nanoseconds.

     This routine is a new primitive.

RETURN VALUES
     If the function fails, errno may be set to one of the following
     values:

     EINVAL    The value specified by interval is invalid.

SEE ALSO
     pthreadyield(3-thr).
















Page 1                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026