source: rtems/cpukit/score/src/scheduleredfyield.c

Last change on this file was 4c20da4, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 4, 2019 at 7:18:11 AM

doxygen: Rename Score* groups in RTEMSScore*

Update #3706

  • Property mode set to 100644
File size: 946 bytes
RevLine 
[f839bf5a]1/**
2 * @file
3 *
4 * @brief Scheduler EDF Yield
5 *
[4c20da4]6 * @ingroup RTEMSScoreScheduler
[f839bf5a]7 */
8
[5472ad41]9/*
10 *  Copyright (C) 2011 Petr Benes.
11 *  Copyright (C) 2011 On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
[c499856]15 *  http://www.rtems.org/license/LICENSE.
[5472ad41]16 */
17
18#if HAVE_CONFIG_H
19#include "config.h"
20#endif
21
[e5ca54c9]22#include <rtems/score/scheduleredfimpl.h>
[5472ad41]23
[ca1e546e]24void _Scheduler_EDF_Yield(
[e1598a6]25  const Scheduler_Control *scheduler,
[2df4abc]26  Thread_Control          *the_thread,
27  Scheduler_Node          *node
[24934e36]28)
[5472ad41]29{
[99fc1d1d]30  Scheduler_EDF_Context *context;
[2df4abc]31  Scheduler_EDF_Node    *the_node;
[5472ad41]32
[99fc1d1d]33  context = _Scheduler_EDF_Get_context( scheduler );
[2df4abc]34  the_node = _Scheduler_EDF_Node_downcast( node );
[40ee2fc0]35
[2df4abc]36  _Scheduler_EDF_Extract( context, the_node );
37  _Scheduler_EDF_Enqueue( context, the_node, the_node->priority );
[a4a307d]38  _Scheduler_EDF_Schedule_body( scheduler, the_thread, true );
[5472ad41]39}
Note: See TracBrowser for help on using the repository browser.