• R/O
  • SSH
  • HTTPS

chibios: 提交


Commit MetaInfo

修订版15937 (tree)
时间2022-12-31 20:05:31
作者gdisirio

Log Message

OOP improvements.

更改概述

差异

--- trunk/os/common/utils/include/oop_referenced_object.h (revision 15936)
+++ trunk/os/common/utils/include/oop_referenced_object.h (revision 15937)
@@ -23,6 +23,7 @@
2323 * @addtogroup OOP_REFERENCED_OBJECT
2424 * @details Base class for objects that implement a reference counter and
2525 * are disposed when the number of references reaches zero.
26+ * This class extends @p base_object_c class.
2627 * @{
2728 */
2829
--- trunk/os/common/utils/include/oop_synchronized_object.h (revision 15936)
+++ trunk/os/common/utils/include/oop_synchronized_object.h (revision 15937)
@@ -18,11 +18,11 @@
1818 * @file oop_synchronized_object.h
1919 * @brief Base class for objects supporting synchronization.
2020 * @details This header defines a base class for classes requiring a
21- * synchronization mechanism,
21+ * synchronization mechanism.
2222 *
2323 * @addtogroup OOP_SYNCHRONIZED_OBJECT
2424 * @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.
2626 * @{
2727 */
2828
@@ -42,13 +42,13 @@
4242 * @note This object defines no methods.
4343 */
4444 #define __synchronized_object_methods \
45- __referenced_object_methods
45+ __base_object_methods
4646
4747 /**
4848 * @brief @p synchronized_object_c specific data.
4949 */
5050 #define __synchronized_object_data \
51- __referenced_object_data \
51+ __base_object_data \
5252 mutex_t mutex;
5353
5454
@@ -86,7 +86,7 @@
8686 static inline void *__synchronized_object_objinit_impl(void *ip, const void *vmt) {
8787 synchronized_object_c *objp = (synchronized_object_c *)ip;
8888
89- __referenced_object_objinit_impl(ip, vmt);
89+ __base_object_objinit_impl(ip, vmt);
9090 osalMutexObjectInit(&objp->mutex);
9191
9292 return ip;
@@ -101,7 +101,7 @@
101101 CC_FORCE_INLINE
102102 static inline void __synchronized_object_dispose_impl(void *ip) {
103103
104- __referenced_object_dispose_impl(ip);
104+ __base_object_dispose_impl(ip);
105105 /* Nothing.*/
106106 /* TODO add RT objects disposing when available.*/
107107 }
Show on old repository browser