RCS file: /usr1/CVS/rtems/cpukit/score/src/isrthreaddispatch.c,v
retrieving revision 1.1
diff -u -r1.1 isrthreaddispatch.c
|
|
|
5 | 5 | */ |
6 | 6 | |
7 | 7 | /* |
8 | | * Copyright (c) 2009 embedded brains GmbH |
9 | | * |
10 | | * embedded brains GmbH |
11 | | * Obere Lagerstr. 30 |
12 | | * D-82178 Puchheim |
13 | | * Germany |
14 | | * <rtems@embedded-brains.de> |
15 | | * |
16 | | * Copyright (c) 2009 Till Straumann <strauman@slac.stanford.edu> |
| 8 | * Copyright (c) 2009 On-Line Applications Research Corporation (OAR) |
17 | 9 | * |
18 | 10 | * The license and distribution terms for this file may be |
19 | 11 | * found in the file LICENSE in this distribution or at |
… |
… |
|
27 | 19 | |
28 | 20 | void _ISR_Thread_dispatch( void ) |
29 | 21 | { |
30 | | if ( _Context_Switch_necessary ) { |
31 | | _Thread_Dispatch(); |
32 | | } else if ( _ISR_Signals_to_thread_executing ) { |
| 22 | if ( _Context_Switch_necessary || _ISR_Signals_to_thread_executing ) { |
33 | 23 | _ISR_Signals_to_thread_executing = false; |
34 | | if ( |
35 | | _Thread_Do_post_task_switch_extension |
36 | | || _Thread_Executing->do_post_task_switch_extension |
37 | | ) { |
38 | | _Thread_Executing->do_post_task_switch_extension = false; |
39 | | _API_extensions_Run_postswitch(); |
40 | | } |
| 24 | _Thread_Dispatch(); |
41 | 25 | } |
42 | 26 | } |
43 | 27 | |