pthread_make_periodic_np(3)

pthread_make_periodic_np3

Mark a real-time thread as periodic

Usage

#include <rtl_sched.h>

int pthread_make_periodic_np(pthread_t thread, hrtime_t start_time, hrtime_t period);

Overview

This function is a non-portable Real-Time 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.

If the period is equal to 0, the task will be released once at the start_time.

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.

Author

Michael Barabanov <[email protected]>

From rtlinux 2.0rel-1 in Debian 2.2 (Potato). Parsed by carta from the page's man source.