diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-12-01 20:42:48 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-12-02 12:41:03 +0100 |
commit | 5b6c290ed0fae8f9afd343c891e6d3650ef22492 (patch) | |
tree | f01c2825980599091959ff403c98fb95ee5851d3 /cpukit/rtems/src/tasksetpriority.c | |
parent | posix: Fix typo (diff) | |
download | rtems-5b6c290ed0fae8f9afd343c891e6d3650ef22492.tar.bz2 |
score: Initialize thread queue context early
Initialize thread queue context early preferably outside the critical
section.
Remove implicit _Thread_queue_Context_initialize() from
_Thread_Wait_acquire().
Diffstat (limited to '')
-rw-r--r-- | cpukit/rtems/src/tasksetpriority.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/rtems/src/tasksetpriority.c b/cpukit/rtems/src/tasksetpriority.c index 8f0ce31090..c17ff1cf7f 100644 --- a/cpukit/rtems/src/tasksetpriority.c +++ b/cpukit/rtems/src/tasksetpriority.c @@ -44,7 +44,6 @@ static rtems_status_code _RTEMS_tasks_Set_priority( return RTEMS_INVALID_PRIORITY; } - _Thread_queue_Context_clear_priority_updates( queue_context ); _Thread_Priority_change( the_thread, &the_thread->Real_priority, @@ -78,6 +77,7 @@ rtems_status_code rtems_task_set_priority( } _Thread_queue_Context_initialize( &queue_context ); + _Thread_queue_Context_clear_priority_updates( &queue_context ); the_thread = _Thread_Get( id, &queue_context.Lock_context.Lock_context ); if ( the_thread == NULL ) { |