Introduction   API Reference   Examples   Index  

Priority management
[L4 Thread Library API Reference]


Typedefs

typedef l4_int32_t l4_prio_t
 Thread priority type.

Functions

L4_CV l4_prio_t l4thread_get_prio (l4thread_t thread)
 Get priority.
L4_CV int l4thread_set_prio (l4thread_t thread, l4_prio_t prio)
 Set priority.

Typedef Documentation

typedef l4_int32_t l4_prio_t

Thread priority type.

The valid priority range depends on the L4 kernel, currently it is 0-255.


Function Documentation

L4_CV l4_prio_t l4thread_get_prio ( l4thread_t  thread  ) 

Get priority.

Parameters:
thread Thread id.
Returns:
Priority of thread (>= 0), error code otherwise (< 0):
  • -L4_EINVAL invalid thread id
Return the L4 priority of thread thread.

L4_CV int l4thread_set_prio ( l4thread_t  thread,
l4_prio_t  prio 
)

Set priority.

Parameters:
thread Thread id.
prio New priority.
Returns:
0 on success, error code otherwise:
  • -L4_EINVAL Invalid thread id or priority.
Set the L4 priority of thread to prio.


L4 Thread Library Reference Manual, written by Lars Reuther  © 2000-2003