Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <sched.h>
Link against: libc.lib

SCHED_RR

Interface status: externallyDefinedApi

SCHED_RR 3

Description

Scheduling policy

[Top]


sched_yield(void)

Interface status: externallyDefinedApi

IMPORT_C int sched_yield(void);

Description

yield processor. The sched_yield(void)sched_yield(void) function forces the running thread to relinquish the processor until it again becomes the head of its thread list. It takes no arguments.

Return value

int

The sched_yield(void)sched_yield(void) function returns 0 if it completes successfully, or it returns a value of -1 and sets errno to indicate the error.

[Top]


sched_get_priority_max(int)

Interface status: externallyDefinedApi

IMPORT_C int sched_get_priority_max(int policy);

Description

The value of policy is one of the scheduling policy values defined in <sched.h>.

Parameters

int policy

Return value

int

If successful, the sched_get_priority_max(int)sched_get_priority_max(int) functions return the appropriate maximum values, respectively. If unsuccessful, they return a value of -1 and set errno to indicate the error.

[Top]


sched_get_priority_min(int)

Interface status: externallyDefinedApi

IMPORT_C int sched_get_priority_min(int policy);

Description

The value of policy is one of the scheduling policy values defined in <sched.h>.

Parameters

int policy

Return value

int

If successful, the sched_get_priority_min(int)sched_get_priority_min(int) functions return the appropriate minimum values, respectively. If unsuccessful, they return a value of -1 and set errno to indicate the error.