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

Function _lwp_shm_ref_dec

components/lwp/lwp_shm.c:360–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360static int _lwp_shm_ref_dec(struct rt_lwp *lwp, void *shm_vaddr)
361{
362 struct lwp_shm_struct* p = _lwp_shm_struct_get(lwp, shm_vaddr);
363
364 if (p && (p->ref > 0))
365 {
366 p->ref--;
367 return p->ref;
368 }
369 return -1;
370}
371
372int lwp_shm_ref_dec(struct rt_lwp *lwp, void *shm_vaddr)
373{

Callers 1

lwp_shm_ref_decFunction · 0.85

Calls 1

_lwp_shm_struct_getFunction · 0.85

Tested by

no test coverage detected