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

Function rt_mm_lock

components/lwp/lwp_mm.c:16–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14static rt_mutex_t mm_lock;
15
16void rt_mm_lock(void)
17{
18 if (rt_thread_self())
19 {
20 if (!mm_lock)
21 {
22 mm_lock = rt_mutex_create("mm_lock", RT_IPC_FLAG_FIFO);
23 }
24 if (mm_lock)
25 {
26 rt_mutex_take(mm_lock, RT_WAITING_FOREVER);
27 }
28 }
29}
30
31void rt_mm_unlock(void)
32{

Callers 6

lwp_shmgetFunction · 0.85
lwp_shm_ref_incFunction · 0.85
lwp_shm_ref_decFunction · 0.85
lwp_shmdtFunction · 0.85
lwp_shminfoFunction · 0.85
list_shmFunction · 0.85

Calls 3

rt_thread_selfFunction · 0.85
rt_mutex_createFunction · 0.85
rt_mutex_takeFunction · 0.85

Tested by

no test coverage detected