score: Avoid include of <rtems/score/thread.h>

Update #3598.
This commit is contained in:
Sebastian Huber
2018-11-08 13:12:32 +01:00
parent 742d6db125
commit a11b98c906
2 changed files with 17 additions and 15 deletions

View File

@@ -20,12 +20,13 @@
#include <rtems/score/interr.h> #include <rtems/score/interr.h>
#include <rtems/score/chain.h> #include <rtems/score/chain.h>
#include <rtems/score/thread.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
struct _Thread_Control;
typedef void User_extensions_routine RTEMS_DEPRECATED; typedef void User_extensions_routine RTEMS_DEPRECATED;
/** /**
@@ -69,8 +70,8 @@ typedef void User_extensions_routine RTEMS_DEPRECATED;
* return @a false and the entire thread create operation will fail. * return @a false and the entire thread create operation will fail.
*/ */
typedef bool ( *User_extensions_thread_create_extension )( typedef bool ( *User_extensions_thread_create_extension )(
Thread_Control *executing, struct _Thread_Control *executing,
Thread_Control *created struct _Thread_Control *created
); );
/** /**
@@ -89,8 +90,8 @@ typedef bool ( *User_extensions_thread_create_extension )(
* @param[in] deleted The deleted thread. * @param[in] deleted The deleted thread.
*/ */
typedef void( *User_extensions_thread_delete_extension )( typedef void( *User_extensions_thread_delete_extension )(
Thread_Control *executing, struct _Thread_Control *executing,
Thread_Control *deleted struct _Thread_Control *deleted
); );
/** /**
@@ -109,8 +110,8 @@ typedef void( *User_extensions_thread_delete_extension )(
* @param[in] started The started thread. * @param[in] started The started thread.
*/ */
typedef void( *User_extensions_thread_start_extension )( typedef void( *User_extensions_thread_start_extension )(
Thread_Control *executing, struct _Thread_Control *executing,
Thread_Control *started struct _Thread_Control *started
); );
/** /**
@@ -131,8 +132,8 @@ typedef void( *User_extensions_thread_start_extension )(
* @param[in] restarted The executing thread. Yes, the executing thread. * @param[in] restarted The executing thread. Yes, the executing thread.
*/ */
typedef void( *User_extensions_thread_restart_extension )( typedef void( *User_extensions_thread_restart_extension )(
Thread_Control *executing, struct _Thread_Control *executing,
Thread_Control *restarted struct _Thread_Control *restarted
); );
/** /**
@@ -154,8 +155,8 @@ typedef void( *User_extensions_thread_restart_extension )(
* @param[in] heir The heir thread. * @param[in] heir The heir thread.
*/ */
typedef void( *User_extensions_thread_switch_extension )( typedef void( *User_extensions_thread_switch_extension )(
Thread_Control *executing, struct _Thread_Control *executing,
Thread_Control *heir struct _Thread_Control *heir
); );
/** /**
@@ -169,7 +170,7 @@ typedef void( *User_extensions_thread_switch_extension )(
* @param[in] executing The executing thread. * @param[in] executing The executing thread.
*/ */
typedef void( *User_extensions_thread_begin_extension )( typedef void( *User_extensions_thread_begin_extension )(
Thread_Control *executing struct _Thread_Control *executing
); );
/** /**
@@ -183,7 +184,7 @@ typedef void( *User_extensions_thread_begin_extension )(
* @param[in] executing The executing thread. * @param[in] executing The executing thread.
*/ */
typedef void( *User_extensions_thread_exitted_extension )( typedef void( *User_extensions_thread_exitted_extension )(
Thread_Control *executing struct _Thread_Control *executing
); );
/** /**
@@ -223,7 +224,7 @@ typedef void( *User_extensions_fatal_extension )(
* @param[in] terminated The terminated thread. * @param[in] terminated The terminated thread.
*/ */
typedef void( *User_extensions_thread_terminate_extension )( typedef void( *User_extensions_thread_terminate_extension )(
Thread_Control *terminated struct _Thread_Control *terminated
); );
/** /**

View File

@@ -19,8 +19,9 @@
#define _RTEMS_SCORE_USEREXTIMPL_H #define _RTEMS_SCORE_USEREXTIMPL_H
#include <rtems/score/userext.h> #include <rtems/score/userext.h>
#include <rtems/score/isrlock.h>
#include <rtems/score/chainimpl.h> #include <rtems/score/chainimpl.h>
#include <rtems/score/isrlock.h>
#include <rtems/score/thread.h>
#include <rtems/score/percpu.h> #include <rtems/score/percpu.h>
#ifdef __cplusplus #ifdef __cplusplus