summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadqflush.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/threadqflush.c')
-rw-r--r--cpukit/score/src/threadqflush.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/score/src/threadqflush.c b/cpukit/score/src/threadqflush.c
index ef4d6b1f09..4310e06edf 100644
--- a/cpukit/score/src/threadqflush.c
+++ b/cpukit/score/src/threadqflush.c
@@ -92,6 +92,13 @@ size_t _Thread_queue_Flush_critical(
break;
}
+ /*
+ * We do not have enough space in the queue context to collect all priority
+ * updates, so clear it each time. We unconditionally do the priority
+ * update for the owner later if it exists.
+ */
+ _Thread_queue_Context_clear_priority_updates( queue_context );
+
do_unblock = _Thread_queue_Extract_locked(
queue,
operations,