Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/s/sched_rr_get_interval.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/s/sched_rr_get_interval.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/s/sched_rr_get_interval.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/s/sched_rr_get_interval.html on line 8

sched_rr_get_interval()

Get the execution time limit of a process

Synopsis:

#include <sched.h>

int sched_rr_get_interval( 
                 pid_t pid,
                 struct timespec * interval );

Arguments:

pid
The process ID whose execution time limit you want to get.
interval
A pointer to a timespec structure that the function updates with the process's current execution time limit.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The sched_rr_get_interval() function updates interval with the current execution time limit for the process, pid. If pid is 0, the current execution time limit for the calling process is returned.

Returns:

0
Success.
-1
An error occurred (errno is set).

Errors:

ENOSYS
The sched_rr_get_interval() function isn't currently supported.
ESRCH
The process pid can't be found.

Classification:

POSIX 1003.1 PS

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

timespec

Processes and Threads chapter of Getting Started with QNX Neutrino


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/s/sched_rr_get_interval.html on line 148

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/s/sched_rr_get_interval.html on line 148