source: rtems/cpukit/itron/src/ext_tsk.c @ a29d2e7

4.104.114.84.95
Last change on this file since a29d2e7 was 7ded4e37, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/15/04 at 04:00:25

Remove unnecessary white spaces.

  • Property mode set to 100644
File size: 920 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-1999.
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/itron.h>
17
18#include <rtems/score/thread.h>
19#include <rtems/score/userext.h>
20#include <rtems/score/wkspace.h>
21#include <rtems/score/apiext.h>
22#include <rtems/score/sysstate.h>
23
24#include <rtems/itron/task.h>
25
26
27/*
28 *  ext_tsk - Exit Issuing Task
29 */
30
31void ext_tsk( void )
32{
33  /*
34   *  Figure out what to do if this happens.
35   *  We can not return regardless
36      if ( _ITRON_Is_in_non_task_state() )
37        return E_CTX;
38  */
39
40  _Thread_Disable_dispatch();
41
42  _Thread_Set_state( _Thread_Executing, STATES_DORMANT );
43  _Thread_Reset( _Thread_Executing, NULL, 0 );
44
45  _Thread_Enable_dispatch();
46}
Note: See TracBrowser for help on using the repository browser.