Obtains the current scheduling policy of a thread.
Syntax
cma_thread_get_sched(
thread,
policy);
Argument Data Type Access
thread opaque cma_t_thread read
policy opaque cma_t_sched_ write
policy
C Binding
#include
void
cma_thread_get_sched (
cma_t_thread *thread,
cma_t_sched_policy *policy);
Arguments
- thread
- Handle of the thread whose scheduling policy is obtained.
- policy
- Variable that receives the current scheduling policy value of
the thread specified in thread. Refer to the description
of cma_thread_set_sched for valid values.
Description
This routine obtains the current scheduling policy of a
thread. The current scheduling policy of a thread can be different
from the initial scheduling policy if the cma_thread_set_sched
routine has been called.
Exceptions
cma_e_existence
cma_e_use_error