| 695 | #endif |
| 696 | |
| 697 | rt_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 | |
| 706 | rt_inline rt_base_t _heap_lock(void) |
| 707 | { |
no test coverage detected