Changeset 187d93c in rtems-schedsim

Timestamp:
04/30/14 18:24:50 (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
30430be
Parents:
8703c13
Message:

Allow Scheduler Simulator to "defer dispatch" until controlled

This is needed to prevent a semaphore delete from triggering a
preempt and breaking the mutex is owner debug check. Technically
we are running the same thread until the API call returns. But from
an RTEMS internals perspective, it was preempted at the _Object_Put().

When understanding this patch, it is important to remember that the
Scheduler Simulator is single threaded and faking out RTEMS. This
is one place where RTEMS would have preempted to a thread and when
we returned to rtems_semaphore_delete(), the _Object_Put() call
would have been made by the correct thread.

(No files)

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