| 225 | |
| 226 | |
| 227 | int init_cell_lock( struct cell *cell ) |
| 228 | { |
| 229 | #ifdef GEN_LOCK_T_PREFERED |
| 230 | lock_init(&cell->reply_mutex); |
| 231 | #else |
| 232 | cell->reply_mutex.semaphore_set=reply_semaphore; |
| 233 | cell->reply_mutex.semaphore_index = cell->hash_index % sem_nr; |
| 234 | #endif /* GEN_LOCK_T_PREFERED */ |
| 235 | return 0; |
| 236 | } |
| 237 | |
| 238 | int init_entry_lock( struct s_table* ht, struct entry *entry ) |
| 239 | { |
no test coverage detected