list_*时,提供对第一层object的原子保护

This commit is contained in:
shaojinchun committed 2018-12-27 16:31:22 +08:00
1 parent 3f79a78393
commit ed9a558da9
2 files changed
+584 -385

No files matched your search

+582 -384
View File
File diff suppressed because it is too large. Load diff
+2 -1
View File
@@ -367,7 +367,8 @@ typedef struct rt_object *rt_object_t; /**< Type for kernel obj
*/
enum rt_object_class_type
{
RT_Object_Class_Thread = 0, /**< The object is a thread. */
RT_Object_Class_Null = 0, /**< The object is not used. */
RT_Object_Class_Thread, /**< The object is a thread. */
RT_Object_Class_Semaphore, /**< The object is a semaphore. */
RT_Object_Class_Mutex, /**< The object is a mutex. */
RT_Object_Class_Event, /**< The object is a event. */