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

Function _heap_lock_init

src/kservice.c:697–704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695#endif
696
697rt_inline void _heap_lock_init(void)
698{
699#if defined(RT_USING_HEAP_ISR)
700 rt_spin_lock_init(&_heap_spinlock);
701#elif defined(RT_USING_MUTEX)
702 rt_mutex_init(&_lock, "heap", RT_IPC_FLAG_PRIO);
703#endif
704}
705
706rt_inline rt_base_t _heap_lock(void)
707{

Callers 1

Calls 2

rt_mutex_initFunction · 0.85
rt_spin_lock_initFunction · 0.70

Tested by

no test coverage detected