[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]


cma_thread_get_priority

Obtains the current priority of a thread.

Syntax

cma_thread_get_priority(
                         thread,
                         priority);
 


Argument Data Type Access

thread opaque cma_t_thread read priority opaque cma_t_priority write


C Binding

#include 

void cma_thread_get_priority ( cma_t_thread thread, cma_t_priority *priority);

Arguments

thread
Handle of the thread whose priority is obtained.
priority
Variable that receives the current priority value of the thread specified in thread. Refer to the description of cma_ thread_set_priority for valid values.

Description

This routine obtains the current priority of a thread. The current priority can be different from the initial priority of the thread if the cma_thread_set_priority routine has been called, or if the thread's scheduling policy dynamically modifies thread priorities.

The exact effect of different priority values is dependent upon the scheduling policy assigned to the thread.

Exceptions

cma_e_existence
cma_e_use_error



[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]