4.104.115
Rev | Line | |
---|
[c3db01d0] | 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 | |
---|
[484a769] | 24 | bool _User_extensions_Thread_create ( |
---|
[c3db01d0] | 25 | Thread_Control *the_thread |
---|
| 26 | ) |
---|
| 27 | { |
---|
| 28 | Chain_Node *the_node; |
---|
| 29 | User_extensions_Control *the_extension; |
---|
[484a769] | 30 | bool status; |
---|
[c3db01d0] | 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 ) |
---|
[aae7f1a1] | 44 | return false; |
---|
[c3db01d0] | 45 | } |
---|
| 46 | } |
---|
| 47 | |
---|
[aae7f1a1] | 48 | return true; |
---|
[c3db01d0] | 49 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.