mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 02:06:14 +08:00
Merge pull request #4081 from mysterywolf/rt_object_delete
[kernel] rt_object_delete函数优化重置object->type
This commit is contained in:
+1
-1
@@ -473,7 +473,7 @@ void rt_object_delete(rt_object_t object)
|
||||
RT_OBJECT_HOOK_CALL(rt_object_detach_hook, (object));
|
||||
|
||||
/* reset object type */
|
||||
object->type = 0;
|
||||
object->type = RT_Object_Class_Null;
|
||||
|
||||
/* lock interrupt */
|
||||
temp = rt_hw_interrupt_disable();
|
||||
|
||||
Reference in New Issue
Block a user