MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_object_is_systemobject

Function rt_object_is_systemobject

src/object.c:597–606  ·  view source on GitHub ↗

* @brief This function will judge the object is system object or not. * * @note Normally, the system object is a static object and the type * of object set to RT_Object_Class_Static. * * @param object The specified object to be judged. * * @return RT_TRUE if a system object, RT_FALSE for others. */

Source from the content-addressed store, hash-verified

595 * @return RT_TRUE if a system object, RT_FALSE for others.
596 */
597rt_bool_t rt_object_is_systemobject(rt_object_t object)
598{
599 /* object check */
600 RT_ASSERT(object != RT_NULL);
601
602 if (object->type & RT_Object_Class_Static)
603 return RT_TRUE;
604
605 return RT_FALSE;
606}
607
608/**
609 * @brief This function will return the type of object without

Callers 15

rt_raw_channel_closeFunction · 0.85
rt_device_unregisterFunction · 0.85
rt_device_destroyFunction · 0.85
rt_sem_detachFunction · 0.85
rt_sem_deleteFunction · 0.85
rt_mutex_detachFunction · 0.85
rt_mutex_deleteFunction · 0.85
rt_event_detachFunction · 0.85
rt_event_deleteFunction · 0.85
rt_mb_detachFunction · 0.85
rt_mb_deleteFunction · 0.85
rt_mq_detachFunction · 0.85

Calls

no outgoing calls

Tested by 2