5
Last change
on this file since 99de42c was
7f8a978,
checked in by Sebastian Huber <sebastian.huber@…>, on 09/16/14 at 13:43:15
|
sptests/sp07: Minimize thread dispatch latency
Do not use sprintf() in thread dispatch critical sections to avoid
corruption of profiling samples. Update test to reflect thread the life
cycle changes.
|
-
Property mode set to
100644
|
File size:
792 bytes
|
Line | |
---|
1 | /* Task_delete_extension |
---|
2 | * |
---|
3 | * This routine is the delete user extension. |
---|
4 | * |
---|
5 | * Input parameters: |
---|
6 | * running_task - pointer to running TCB |
---|
7 | * deleted_task - pointer to TCB deleted |
---|
8 | * |
---|
9 | * Output parameters: NONE |
---|
10 | * |
---|
11 | * COPYRIGHT (c) 1989-2009. |
---|
12 | * On-Line Applications Research Corporation (OAR). |
---|
13 | * |
---|
14 | * The license and distribution terms for this file may be |
---|
15 | * found in the file LICENSE in this distribution or at |
---|
16 | * http://www.rtems.org/license/LICENSE. |
---|
17 | */ |
---|
18 | |
---|
19 | #ifdef HAVE_CONFIG_H |
---|
20 | #include "config.h" |
---|
21 | #endif |
---|
22 | |
---|
23 | #include "system.h" |
---|
24 | |
---|
25 | void Task_delete_extension( |
---|
26 | rtems_tcb *running_task, |
---|
27 | rtems_tcb *deleted_task |
---|
28 | ) |
---|
29 | { |
---|
30 | ssize_t task = task_number( deleted_task->Object.id ); |
---|
31 | |
---|
32 | if (task > 0) { |
---|
33 | ++Task_deleted[ task ]; |
---|
34 | } |
---|
35 | |
---|
36 | rtems_test_assert( running_task != deleted_task ); |
---|
37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.