Introduction   API Reference   Examples   Index  

Thread sleep
[L4 Thread Library API Reference]


Functions

L4_CV void l4thread_sleep (l4_uint32_t t)
 Sleep.
L4_CV void l4thread_usleep (l4_uint32_t t)
 Sleep (microseconds).
L4_CV void l4thread_sleep_forever (void)
 Sleep forever.

Function Documentation

L4_CV void l4thread_sleep ( l4_uint32_t  t  ) 

Sleep.

Parameters:
t time (milliseconds), if set to -1 sleep forever
Sleep for t milliseconds.

L4_CV void l4thread_usleep ( l4_uint32_t  t  ) 

Sleep (microseconds).

Parameters:
t time (microseconds)
Sleep for t microseconds, the actual timer resolution depends on the L4 kernel, common values are 1 or 2 milliseconds.

L4_CV void l4thread_sleep_forever ( void   ) 

Sleep forever.

Sleep forever.


L4 Thread Library Reference Manual, written by Lars Reuther  © 2000-2003