[Bug 1777] New: Accessing _Thread_Dispatch_disable_level should be consolidated

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Wed Apr 13 17:42:13 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1777

           Summary: Accessing  _Thread_Dispatch_disable_level should be
                    consolidated
           Product: RTEMS
           Version: HEAD
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: cpukit
        AssignedTo: joel.sherrill at oarcorp.com
        ReportedBy: jennifer.averett at oarcorp.com


Created an attachment (id=1146)
 --> (https://www.rtems.org/bugzilla/attachment.cgi?id=1146)
consolidate access to _Thread_Dispatch_disable_level

In order to support future SMP work _Thread_Dispatch_disable_level should only
be touched by a handful of routines.  The attached patch adds the inline
routines:
  _Thread_Dispatch_in_critical_section(), 
  _Thread_Dispatch_get_disable_level(), 
  _Thread_Dispatch_set_disable_level(), 
  _Thread_Dispatch_increment_disable_level() and
  _Thread_Dispatch_decrement_disable_level().

Where possible the source has been modified to call one of these routines
instead of directly accessing _Thread_Dispatch_disable_level.  

Additionally, _Thread_Disable_dispatch and _Thread_Enable_dispatch were made
inline only when not SMP or the heavy debug was turned on.  Otherwise, the
routines defined in the new files threaddisabledispatch.c and
threadenabledispatch.c are used.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list