summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorshaojinchun <[email protected]>2018-12-27 16:31:22 +0800
committershaojinchun <[email protected]>2018-12-27 16:31:22 +0800
commited9a558da979035c38fac68d715bfa3ea553822d (patch)
tree04f6ef7096a8f6d1f06b94078fac3f88ccf86726 /include
parent3f79a78393bdd49e7255e2bfc1829d7d7fb6fb91 (diff)
list_*时,提供对第一层object的原子保护
Diffstat (limited to 'include')
-rw-r--r--include/rtdef.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index 49551de9ee..ecdabd4490 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -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. */