pthread_wait_np

Name

pthread_wait_np -- suspend the current thread until the next period

Synopsis

       #include <rtl_sched.h>

       int pthread_wait_np(void);

DESCRIPTION

This function is a non-portable Realtime Linux extension. pthread_wait_np suspends execution of the currently running realtime thread until the start of the next period. The thread was previously marked for execution using pthread_make_periodic_np.

The thread gives up control until the next time period.

RETURN VALUE

Always returns 0

ERRORS

None.

NOTES

The recommended way to implement periodic threads is to use clock_nanosleep(3).

AUTHOR

Michael Barabanov (baraban@fsmlabs.com)

AUTHOR

Michael Barabanov (baraban@fsmlabs.com)

SEE ALSO

pthread_make_periodic_np(3), pthread_suspend_np(3)

2001 FSMLabs Inc.

All rights reserved.