source:
rtems/cpukit/score/src/schedulercbsallocate.c
@
25f5730f
Last change on this file since 25f5730f was beab7329, checked in by Sebastian Huber <sebastian.huber@…>, on 05/13/14 at 14:03:05 | |
---|---|
|
|
File size: 791 bytes |
Rev | Line | |
---|---|---|
[5a58b1e] | 1 | /* |
2 | * @file | |
3 | * | |
4 | * @brief Scheduler CBS Allocate | |
5 | * @ingroup ScoreScheduler | |
6 | */ | |
7 | ||
[2aff1f08] | 8 | /* |
9 | * Copyright (C) 2011 Petr Benes. | |
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 | |
[c499856] | 14 | * http://www.rtems.org/license/LICENSE. |
[2aff1f08] | 15 | */ |
16 | ||
17 | #if HAVE_CONFIG_H | |
18 | #include "config.h" | |
19 | #endif | |
20 | ||
[beab7329] | 21 | #include <rtems/score/schedulercbsimpl.h> |
[2aff1f08] | 22 | |
[69aa3349] | 23 | bool _Scheduler_CBS_Allocate( |
[e1598a6] | 24 | const Scheduler_Control *scheduler, |
[69aa3349] | 25 | Thread_Control *the_thread |
[2aff1f08] | 26 | ) |
27 | { | |
[beab7329] | 28 | Scheduler_CBS_Node *node = _Scheduler_CBS_Node_get( the_thread ); |
[2aff1f08] | 29 | |
[24934e36] | 30 | (void) scheduler; |
31 | ||
[beab7329] | 32 | node->Base.thread = the_thread; |
33 | node->Base.queue_state = SCHEDULER_EDF_QUEUE_STATE_NEVER_HAS_BEEN; | |
34 | node->cbs_server = NULL; | |
[2aff1f08] | 35 | |
[69aa3349] | 36 | return true; |
[2aff1f08] | 37 | } |
Note: See TracBrowser
for help on using the repository browser.