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

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

File diff suppressed because it is too large Load Diff

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. */