Obtains the scheduling policy attribute of thread creation.
Syntax
cma_attr_get_sched(
attr,
policy);
Argument Data Type Access
attr opaque cma_t_attr read
policy opaque cma_t_sched_ write
policy
C Binding
#include
void
cma_attr_get_sched (
cma_t_attr *attr,
cma_t_sched_policy *policy);
Arguments
- attr
- Handle of the attributes object whose scheduling policy
attribute is obtained.
- policy
- Receives the value of the scheduling policy attribute. See the
description of cma_attr_set_sched for valid values.
Description
This routine obtains the scheduling policy of threads created
using the attributes object specified by the attr
argument. The default value of the scheduling attribute is cma_c_
sched_default (which maps to cma_c_sched_throughput).
Exceptions
cma_e_existence
cma_e_use_error