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

Function _heap_unlock

src/kservice.c:721–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

719}
720
721rt_inline void _heap_unlock(rt_base_t level)
722{
723#if defined(RT_USING_HEAP_ISR)
724 rt_spin_unlock_irqrestore(&_heap_spinlock, level);
725#elif defined(RT_USING_MUTEX)
726 RT_ASSERT(level == RT_EOK);
727 if (rt_thread_self())
728 rt_mutex_release(&_lock);
729#else
730 rt_exit_critical();
731#endif
732}
733
734#ifdef RT_USING_UTESTCASES
735/* export to utest to observe the inner statements */

Callers 6

rt_mallocFunction · 0.85
rt_reallocFunction · 0.85
rt_freeFunction · 0.85
rt_memory_infoFunction · 0.85
rt_page_allocFunction · 0.85
rt_page_freeFunction · 0.85

Calls 4

rt_thread_selfFunction · 0.85
rt_mutex_releaseFunction · 0.85
rt_exit_criticalFunction · 0.70

Tested by

no test coverage detected