From d5154d0f6a04f3b7ed59d9a09038576fe2640756 Mon Sep 17 00:00:00 2001 From: Aun-Ali Zaidi Date: Wed, 23 Dec 2015 14:44:02 -0600 Subject: api: Remove deprecated Notepads Notepads where a feature of RTEMS' tasks that simply functioned in the same way as POSIX keys or threaded local storage (TLS). They were introduced well before per task variables, which are also deprecated, and were barely used in favor of their POSIX alternatives. In addition to their scarce usage, Notepads took up unnecessary memory. For each task: - 16 32-bit integers were allocated. - A total of 64 bytes per task per thread. This is especially critical in low memory and safety-critical applications. They are also defined as uint32_t, and therefore are not guaranteed to hold a pointer. Lastly, they are not portable solutions for SMP and uniprocessor systems, like POSIX keys and TLS. updates #2493. --- c/src/librtems++/include/rtems++/rtemsTask.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'c/src/librtems++/include/rtems++/rtemsTask.h') diff --git a/c/src/librtems++/include/rtems++/rtemsTask.h b/c/src/librtems++/include/rtems++/rtemsTask.h index 3aac25d13c..7d151c2f50 100644 --- a/c/src/librtems++/include/rtems++/rtemsTask.h +++ b/c/src/librtems++/include/rtems++/rtemsTask.h @@ -47,8 +47,6 @@ Mode control is through the rtemsTaskMode class. - The rtemsTask class reserved notepad register 31. - ------------------------------------------------------------------------ */ #if !defined(_rtemsTask_h_) @@ -125,12 +123,6 @@ public: const rtems_status_code set_priority(const rtems_task_priority priority, rtems_task_priority& old_priority); - // notepad control - const rtems_status_code get_note(const uint32_t notepad, - uint32_t& note) RTEMS_DEPRECATED; - const rtems_status_code set_note(const uint32_t notepad, - const uint32_t note) RTEMS_DEPRECATED; - // object id, and name const rtems_id id_is() const { return id; } const rtems_name name_is() const { return name; } -- cgit v1.2.3