source: rtems/cpukit/score/src/userextremoveset.c @ 4fc370e

4.115
Last change on this file since 4fc370e was 3be0c9a, checked in by Sebastian Huber <sebastian.huber@…>, on 11/22/12 at 13:51:25

score: Add and use <rtems/score/userextimpl.h>

This file contains the parts of <rtems/score/userext.h> that are only
necessary for the RTEMS implementation.

  • Property mode set to 100644
File size: 726 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup ScoreUserExt
5 *
6 * @brief User Extension Handler implementation.
7 */
8
9/*
10 *  COPYRIGHT (c) 1989-2007.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.com/license/LICENSE.
16 */
17
18#if HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22#include <rtems/score/userextimpl.h>
23
24void _User_extensions_Remove_set (
25  User_extensions_Control  *the_extension
26)
27{
28  _Chain_Extract( &the_extension->Node );
29
30  /*
31   * If a switch handler is present, remove it.
32   */
33
34  if ( the_extension->Callouts.thread_switch != NULL )
35    _Chain_Extract( &the_extension->Switch.Node );
36}
Note: See TracBrowser for help on using the repository browser.