STREAMS-UX Programmer's Guide (February 2007)

STREAMS Utilities Supported by HP-UX
Appendix B
210
NAME
streams_delay () – Delay process execution for a specified number of clock ticks.
SYNOPSIS
#include <sys/stream.h>
#include <sys/strenv.h>
void streams_delay(int ticks);
PARAMETERS
ticks
The number of clock ticks to delay.
DESCRIPTION
streams_delay() causes the caller to sleep for at least the amount of time specified by
ticks
, which is in
units of clock ticks. The exact length of the delay is not guaranteed but can be an arbitrary amount longer
than requested due to the scheduling of other activity in the system.
RETURN VALUES
None
CONSTRAINTS
streams_delay() will block and so can be called from a thread context only. Spinlocks must not be held
across this function call.