DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

thr_get_rr_interval(THREAD)


thr_get_rr_interval -- get the round-robin scheduling interval

Synopsis

   cc [options] -Kthread file
   

#include <thread.h>

void thr_get_rr_interval(timestruc_t *rr_time);

Description

thr_get_rr_interval stores the round-robin scheduling time quantum used by the Threads Library implementation for threads using the SCHED_RR scheduling policy in the timestruc_t pointed to by rr_time.

Parameters


rr_time
pointer to the timestruc_t object in which thr_get_rr_interval will place the value of the round-robin scheduling interval (set by thr_get_rr_interval)

timestruc_t is defined in time.h as follows:

   struct {
   	time_t	tv_sec;		/* seconds */
   	long	tv_nsec;	/* nanoseconds */
   } timestruc_t;

Security restrictions

thr_get_rr_interval requires no special permissions or privilege.

Return values

thr_get_rr_interval does not return a value.

Errors

None

References

Intro(THREAD), thr_getscheduler(THREAD), thr_setscheduler(THREAD)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005