summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/userext.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-17 15:03:22 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-31 08:29:43 +0200
commit391ad3ee4ff868c637a4e1c254da96f194be04e4 (patch)
tree1016e0ddcc317aa892476ff0e47acb6beb6edd0c /cpukit/score/include/rtems/score/userext.h
parentscore: Reduce _Thread_Reset() parameters (diff)
downloadrtems-391ad3ee4ff868c637a4e1c254da96f194be04e4.tar.bz2
score: Fix thread restart extensions context
Run the thread restart extensions in the context of the restarted thread. Run them with thread dispatching enabled.
Diffstat (limited to '')
-rw-r--r--cpukit/score/include/rtems/score/userext.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpukit/score/include/rtems/score/userext.h b/cpukit/score/include/rtems/score/userext.h
index 98145f099f..91e7f97bd3 100644
--- a/cpukit/score/include/rtems/score/userext.h
+++ b/cpukit/score/include/rtems/score/userext.h
@@ -119,11 +119,12 @@ typedef void( *User_extensions_thread_start_extension )(
* which restarted the thread. The second parameter points to the restarted
* thread.
*
- * It is invoked after the environment of the thread has been loaded and the
- * thread has been made ready.
+ * It is invoked in the context of the restarted thread right before the
+ * execution context is restarted. The executing and restarted arguments are
+ * equal. The thread stack reflects the previous execution context.
*
- * Thread dispatching is disabled. The executing thread is not the holder of
- * the allocator mutex.
+ * Thread dispatching is enabled. The thread is not the holder of the
+ * allocator mutex.
*/
typedef void( *User_extensions_thread_restart_extension )(
Thread_Control *,