[RTEMS Project] #2265: Deprecate and Obsolete notepads

RTEMS trac trac at rtems.org
Fri Feb 13 19:51:47 UTC 2015


#2265: Deprecate and Obsolete notepads
---------------------------+----------------------------
 Reporter:  joel.sherrill  |       Owner:  joel.sherrill
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  4.11
Component:  cpukit         |     Version:  4.11
 Severity:  normal         |  Resolution:
 Keywords:                 |
---------------------------+----------------------------

Comment (by joel.sherrill):

 They have multiple issues. Per task variables were added to the API after
 the first releases so notepad was a poor alternative.

 First, is that they have the same problem that lead to splitting events
 into system and user sets. There has to be universal agreement on the
 notepad slots used.

 Second, they are just uint32_t and thus not guaranteed to hold a pointer.

 On a uniprocessor system, you are probably better off from a performance
 point of view using per task variables.

 Overall, you are better off using POSIX keys or thread local storage.

 I haven't recommended its use in the class for over a decade. Just trying
 to clean out cruft.
 :)

--
Ticket URL: <http://devel.rtems.org/ticket/2265#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list