| 152 | } |
| 153 | |
| 154 | static inline void dm_cond_unref(struct dm_cond *cond) |
| 155 | { |
| 156 | if (!cond || cond->type == DM_TYPE_COND) |
| 157 | return; |
| 158 | |
| 159 | if (__atomic_sub_fetch(&cond->ref, 1, __ATOMIC_SEQ_CST) == 0) |
| 160 | shm_free(cond); |
| 161 | } |
| 162 | int init_mutex_cond(pthread_mutex_t *mutex, pthread_cond_t *cond); |
| 163 | |
| 164 | extern struct list_head dm_unreplied_req; |
no test coverage detected