NPA_Delay_Thread

Delays the current process for a specified number of clock ticks.

Thread Context:Blocking
Requirements: This function must be called only from a blocking process level.

Syntax

    LONG NPA_Delay_Thread (
       LONG   npaHandle,
       LONG   clockTicks
       );
    
    

Parameters

npaHandle
(IN) The CDM's or HAM's handle for using the APIs. Its value was assigned during NPA_Register_CDM_Module or NPA_Register_HAM_Module, respectively.
clockTicks
(IN) Value specifying the time in clock ticks to let this process sleep. A clock tick is precisely 3600/65536 seconds, or roughly 55 milliseconds (about 1/18th of a second).

Return Values

The following table lists return values and descriptions.

zero

Successful

nonzero

Unsuccessful

Remarks

NPA_Delay_Thread is used to cause the current process to sleep for the number of clock ticks specified in the clockTicks parameter. During its sleep period, the process temporarily yields its thread. The purpose of this function is to prevent a blocking process, which will not complete for at least a specified time period, from dominating vital resources and blocking other vital NWPA processes. After the specified time elapses, the thread is returned, and the process continues from the point after it called NPA_Delay_Thread.