diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2010-07-12 13:03:42 -0400 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2010-08-03 12:42:59 -0400 |
commit | 25b7346d1cf87d2eeb86f4d3a584b04aca5509a0 (patch) | |
tree | cfdde9e4656f0f0316fc2e393edc4bda2b4c2cae /Kbuild | |
parent | 136a08dbe8c28e751b01e932420f715edb229f6b (diff) |
Restructure pi_semaphore struct for generic inheritance framework.
First patch in a series to implement a generic priority inheritance
framework that can be used by semaphores that use priority inheritance.
This patch makes pi_semaphore a 'base class' for pi-protocols. pi_semaphore
is updated to include a pi_sem_record field named stack_node. This stack_node
is a linked-list node that a task holding the pi_semaphore instance adds to
their semaphore stack. Note that the task's semaphore stack (or linked-list)
simply chains stack_node's of held semaphores into a single linked-list.
This is safe since there is only one semaphore holder at any given moment.
Finally, FMLP-specific data members out to child class fmlp_semaphore.
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions