| 358 | } |
| 359 | |
| 360 | static 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 | |
| 372 | int lwp_shm_ref_dec(struct rt_lwp *lwp, void *shm_vaddr) |
| 373 | { |
no test coverage detected