4.104.115
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2007. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #if HAVE_CONFIG_H |
---|
13 | #include "config.h" |
---|
14 | #endif |
---|
15 | |
---|
16 | #include <rtems/system.h> |
---|
17 | #include <rtems/score/userext.h> |
---|
18 | |
---|
19 | /*PAGE |
---|
20 | * |
---|
21 | * _User_extensions_Thread_create |
---|
22 | */ |
---|
23 | |
---|
24 | bool _User_extensions_Thread_create ( |
---|
25 | Thread_Control *the_thread |
---|
26 | ) |
---|
27 | { |
---|
28 | Chain_Node *the_node; |
---|
29 | User_extensions_Control *the_extension; |
---|
30 | bool status; |
---|
31 | |
---|
32 | for ( the_node = _User_extensions_List.first ; |
---|
33 | !_Chain_Is_tail( &_User_extensions_List, the_node ) ; |
---|
34 | the_node = the_node->next ) { |
---|
35 | |
---|
36 | the_extension = (User_extensions_Control *) the_node; |
---|
37 | |
---|
38 | if ( the_extension->Callouts.thread_create != NULL ) { |
---|
39 | status = (*the_extension->Callouts.thread_create)( |
---|
40 | _Thread_Executing, |
---|
41 | the_thread |
---|
42 | ); |
---|
43 | if ( !status ) |
---|
44 | return false; |
---|
45 | } |
---|
46 | } |
---|
47 | |
---|
48 | return true; |
---|
49 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.