Changeset 93306058 in rtems for cpukit/score/src/coremsgseize.c

Timestamp:
05/27/16 12:43:19 (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
af746b0
Parents:
0e1d11f3
git-author:
Sebastian Huber <sebastian.huber@…> (05/27/16 12:43:19)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/30/16 14:16:21)
Message:

score: _CORE_mutex_Check_dispatch_for_seize()

Move the safety check performed by
_CORE_mutex_Check_dispatch_for_seize() out of the performance critical
path and generalize it. Blocking on a thread queue with an unexpected
thread dispatch disabled level is illegal in all system states.

Add the expected thread dispatch disable level (which may be 1 or 2
depending on the operation) to Thread_queue_Context and use it in
_Thread_queue_Enqueue_critical().

(No files)

Note: See TracChangeset for help on using the changeset viewer.