OOP improvements.
@@ -23,6 +23,7 @@ | ||
23 | 23 | * @addtogroup OOP_REFERENCED_OBJECT |
24 | 24 | * @details Base class for objects that implement a reference counter and |
25 | 25 | * are disposed when the number of references reaches zero. |
26 | + * This class extends @p base_object_c class. | |
26 | 27 | * @{ |
27 | 28 | */ |
28 | 29 |
@@ -18,11 +18,11 @@ | ||
18 | 18 | * @file oop_synchronized_object.h |
19 | 19 | * @brief Base class for objects supporting synchronization. |
20 | 20 | * @details This header defines a base class for classes requiring a |
21 | - * synchronization mechanism, | |
21 | + * synchronization mechanism. | |
22 | 22 | * |
23 | 23 | * @addtogroup OOP_SYNCHRONIZED_OBJECT |
24 | 24 | * @details Base class for objects that require a synchronization mechanism. |
25 | - * This class extends @p synchronized_object_c class. | |
25 | + * This class extends @p base_object_c class. | |
26 | 26 | * @{ |
27 | 27 | */ |
28 | 28 |
@@ -42,13 +42,13 @@ | ||
42 | 42 | * @note This object defines no methods. |
43 | 43 | */ |
44 | 44 | #define __synchronized_object_methods \ |
45 | - __referenced_object_methods | |
45 | + __base_object_methods | |
46 | 46 | |
47 | 47 | /** |
48 | 48 | * @brief @p synchronized_object_c specific data. |
49 | 49 | */ |
50 | 50 | #define __synchronized_object_data \ |
51 | - __referenced_object_data \ | |
51 | + __base_object_data \ | |
52 | 52 | mutex_t mutex; |
53 | 53 | |
54 | 54 |
@@ -86,7 +86,7 @@ | ||
86 | 86 | static inline void *__synchronized_object_objinit_impl(void *ip, const void *vmt) { |
87 | 87 | synchronized_object_c *objp = (synchronized_object_c *)ip; |
88 | 88 | |
89 | - __referenced_object_objinit_impl(ip, vmt); | |
89 | + __base_object_objinit_impl(ip, vmt); | |
90 | 90 | osalMutexObjectInit(&objp->mutex); |
91 | 91 | |
92 | 92 | return ip; |
@@ -101,7 +101,7 @@ | ||
101 | 101 | CC_FORCE_INLINE |
102 | 102 | static inline void __synchronized_object_dispose_impl(void *ip) { |
103 | 103 | |
104 | - __referenced_object_dispose_impl(ip); | |
104 | + __base_object_dispose_impl(ip); | |
105 | 105 | /* Nothing.*/ |
106 | 106 | /* TODO add RT objects disposing when available.*/ |
107 | 107 | } |