source: rtems/cpukit/itron/src/exd_tsk.c @ 7fcc26ac

4.104.114.84.95
Last change on this file since 7fcc26ac was 9d9a3dd, checked in by Jennifer Averett <Jennifer.Averett@…>, on 11/17/99 at 16:47:58

+ Updated copyright information.

  • Property mode set to 100644
File size: 954 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.OARcorp.com/rtems/license.html.
8 *
9 *  $Id$
10 */
11
12#include <itron.h>
13#include <assert.h>
14
15#include <rtems/score/thread.h>
16#include <rtems/score/userext.h>
17#include <rtems/score/wkspace.h>
18#include <rtems/score/apiext.h>
19#include <rtems/score/sysstate.h>
20
21#include <rtems/itron/task.h>
22
23/*
24 *  exd_tsk - Exit and Delete Task
25 */
26
27void exd_tsk( void )
28{
29  Objects_Information     *the_information;
30
31  _Thread_Disable_dispatch();
32
33  the_information = _Objects_Get_information( _Thread_Executing->Object.id );
34
35  /* This should never happen if _Thread_Get() works right */
36  assert( the_information );
37
38  _Thread_Set_state( _Thread_Executing, STATES_DORMANT );
39  _ITRON_Delete_task( _Thread_Executing );
40 
41  _Thread_Enable_dispatch();
42}
43
Note: See TracBrowser for help on using the repository browser.