source: rtems/cpukit/score/src/schedulerpriorityupdate.c @ a936aa49

4.115
Last change on this file since a936aa49 was f7f1d77, checked in by Alex Ivanov <alexivanov97@…>, on 11/28/12 at 14:11:31

score misc: Clean up Doxygen (GCI 2012)

This patch is a task from GCI 2012 which improves the Doxygen
comments in the RTEMS source.
https://google-melange.appspot.com/gci/task/view/google/gci2012/7978208

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/**
2 * @file
3 *
4 * @brief Update Scheduler Priority
5 * @ingroup ScoreScheduler
6 */
7
8/*
9 *  Copyright (C) 2010 Gedare Bloom.
10 *  Copyright (C) 2011 On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 */
16
17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <rtems/system.h>
22#include <rtems/config.h>
23#include <rtems/score/priority.h>
24#include <rtems/score/prioritybitmap.h>
25#include <rtems/score/scheduler.h>
26#include <rtems/score/schedulerpriority.h>
27#include <rtems/score/thread.h>
28
29void _Scheduler_priority_Update(
30  Thread_Control    *the_thread
31)
32{
33  Scheduler_priority_Per_thread *sched_info;
34  Chain_Control                 *rq;
35
36  sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info;
37  rq         = (Chain_Control *) _Scheduler.information;
38
39  sched_info->ready_chain = &rq[ the_thread->current_priority ];
40
41  _Priority_bit_map_Initialize_information(
42    &sched_info->Priority_map,
43    the_thread->current_priority
44  );
45}
Note: See TracBrowser for help on using the repository browser.