source: rtems/cpukit/score/src/userextthreadrestart.c @ 632e4306

4.104.115
Last change on this file since 632e4306 was c3db01d0, checked in by Joel Sherrill <joel.sherrill@…>, on 05/09/07 at 18:27:26

2007-05-09 Joel Sherrill <joel.sherrill@…>

  • libcsupport/include/rtems/libcsupport.h, libcsupport/src/newlibc.c, sapi/Makefile.am, sapi/include/confdefs.h, sapi/src/exinit.c, score/Makefile.am, score/preinstall.am, score/include/rtems/score/userext.h, score/src/chain.c, score/src/userext.c: Switch to newlib reentrancy extension being installed in the initial set instead of using rtems_extension_create. While implementing this, noticed that user extensions and chain code had multiple functions in a single file which is not desirable in the SuperCore? and API portions of RTEMS, so split these into multiple files with one function per file. Also noticed that some of user extension code was inlined for no particular reason so moved that to C bodies. Split executive shutdown from initialization since not every application shuts down. Moved fini call to executive shutdown to be more symmetrical with where it is called at startup.
  • sapi/src/exshutdown.c, score/src/chainappend.c, score/src/chainextract.c, score/src/chainget.c, score/src/chaininsert.c, score/src/userextaddapiset.c, score/src/userextaddset.c, score/src/userextremoveset.c, score/src/userextthreadbegin.c, score/src/userextthreadcreate.c, score/src/userextthreaddelete.c, score/src/userextthreadrestart.c, score/src/userextthreadstart.c, score/src/userextthreadswitch.c: New files.
  • score/inline/rtems/score/userext.inl: Removed.
  • Property mode set to 100644
File size: 953 bytes
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_restart
22 *
23 */
24
25void _User_extensions_Thread_restart (
26  Thread_Control *the_thread
27)
28{
29  Chain_Node              *the_node;
30  User_extensions_Control *the_extension;
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_restart != NULL )
39      (*the_extension->Callouts.thread_restart)(
40        _Thread_Executing,
41        the_thread
42      );
43  }
44}
Note: See TracBrowser for help on using the repository browser.