source: rtems/cpukit/rtems/src/taskexit.c @ 80cf60e

5
Last change on this file since 80cf60e was 80cf60e, checked in by Sebastian Huber <sebastian.huber@…>, on 04/15/20 at 07:48:32

Canonicalize config.h include

Use the following variant which was already used by most source files:

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

  • Property mode set to 100644
File size: 803 bytes
Line 
1/*
2 * Copyright (c) 2018 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.org/license/LICENSE.
13 */
14
15#ifdef HAVE_CONFIG_H
16#include "config.h"
17#endif
18
19#include <rtems/rtems/tasks.h>
20#include <rtems/score/threadimpl.h>
21
22void rtems_task_exit( void )
23{
24  Thread_Control  *executing;
25  Per_CPU_Control *cpu_self;
26
27  cpu_self = _Thread_Dispatch_disable();
28  executing = _Per_CPU_Get_executing( cpu_self );
29
30  _Thread_Exit(
31    executing,
32    THREAD_LIFE_TERMINATING | THREAD_LIFE_DETACHED,
33    NULL
34  );
35
36  _Thread_Dispatch_direct( cpu_self );
37  RTEMS_UNREACHABLE();
38}
Note: See TracBrowser for help on using the repository browser.