source: rtems/c/src/exec/itron/src/ext_tsk.c @ 037a7b1

4.104.114.84.95
Last change on this file since 037a7b1 was 0c5ab522, checked in by Joel Sherrill <joel.sherrill@…>, on 11/12/99 at 21:16:45

Added comment about the E_CTX error condition (Implementation dependent).

  • Property mode set to 100644
File size: 792 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_Restart( _Thread_Executing, NULL, 0 );
36  _Thread_Set_state( _Thread_Executing, STATES_DORMANT );
37
38  _Thread_Enable_dispatch(); 
39}
Note: See TracBrowser for help on using the repository browser.