source: rtems/cpukit/itron/src/ext_tsk.c @ 1ae60eb4

4.104.114.84.95
Last change on this file since 1ae60eb4 was 1ae60eb4, checked in by Jennifer Averett <Jennifer.Averett@…>, on 11/15/99 at 21:31:28

+ Modified to use new Thread_Reset routine instead of the restart method.

  • Property mode set to 100644
File size: 790 bytes
Line 
1/*
2 *  The license and distribution terms for this file may be
3 *  found in the file LICENSE in this distribution or at
4 *  http://www.OARcorp.com/rtems/license.html.
5 *
6 *  $Id$
7 */
8
9#include <itron.h>
10
11#include <rtems/score/thread.h>
12#include <rtems/score/userext.h>
13#include <rtems/score/wkspace.h>
14#include <rtems/score/apiext.h>
15#include <rtems/score/sysstate.h>
16
17#include <rtems/itron/task.h>
18
19
20/*
21 *  ext_tsk - Exit Issuing Task
22 */
23
24void ext_tsk( void )
25{
26  /*
27   *  Figure out what to do if this happens.
28   *  We can not return regardless
29      if ( _ITRON_Is_in_non_task_state() )
30        return E_CTX;
31  */
32
33  _Thread_Disable_dispatch();
34
35  _Thread_Set_state( _Thread_Executing, STATES_DORMANT );
36  _Thread_Reset( _Thread_Executing, NULL, 0 );
37
38  _Thread_Enable_dispatch(); 
39}
Note: See TracBrowser for help on using the repository browser.