man pthread_make_periodic_np () - mark a realtime thread as periodic
NAME
pthread_make_periodic_np - mark a realtime thread as periodic
SYNOPSIS
#include <rtl_sched.h> int pthread_make_periodic_np(pthread_t thread, hrtime_t start_time, hrtime_t period);
DESCRIPTION
This function is a non-portable Realtime Linux extension. pthread_make_periodic_np marks the thread thread as ready for execution. The thread will start its execution at start_time (as shown by the clock used for scheduling) and will run at intervals specified by period given in nanoseconds. RTLinux will attempt to make thread timing as close as possible to what is specified, but start time and period depend on the hardware clock resolution.
RETURN VALUE
pthread_make_periodic_np returns 0 on success and a non-zero error code on error.
ERRORS
- ESRCH
- No thread could be found corresponding to that specified by the given thread ID.
NOTES
This function may not be used on threads assigned to a CPU other than the current.
AUTHOR
Michael Barabanov (baraban@fsmlabs.com (link to URL mailto:baraban@fsmlabs.com) )
SEE ALSO
pthread_wait_np(3) (link to URL pthread_wait_np.3.html) , UNIX spec pthread_create(3) (link to URL ../susv2/xsh/pthread_create.html) , UNIX spec clock_gettime(3) (link to URL ../susv2/xsh/clock_gettime.html) , clock_gethrtime(3) (link to URL clock_gethrtime.3.html) , gethrtime(3) (link to URL gethrtime.3.html) , rtl_getschedclock (link to URL rtl_getschedclock.3.html)
©2001 FSMLabs Inc.
All rights reserved.