[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]


cma_delay

Causes a thread to wait for a specified period of time before continuing execution.

Syntax

cma_delay(
           interval);
 


Argument Data Type Access

time_interval single precision read floating point


C Binding

#include 

void cma_delay ( cma_t_interval interval);

Arguments

interval
Number of seconds that the calling thread waits before continuing execution. Specify a value greater than or equal to 0.

Description

This routine causes a thread to delay execution for a specified period of elapsed time. The period of time the thread waits is at least as long as the number of seconds specified in the time_interval argument.

If you specify a value for time_interval that is less than 0, the cma_e_badparam exception is raised. Specifying 0 for time_interval is allowed and can result in the thread giving up the processor or delivering a pending alert.

This routine is alertable.

Exceptions

cma_e_alerted
cma_e_badparam



[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]