| 312 | #define lock_set_destroy(lock_set) /* do nothing */ |
| 313 | |
| 314 | inline static gen_lock_set_t* lock_set_init(gen_lock_set_t* s) |
| 315 | { |
| 316 | int r; |
| 317 | for (r=0; r<s->size; r++) if (lock_init(&s->locks[r])==0) return 0; |
| 318 | return s; |
| 319 | } |
| 320 | |
| 321 | /* WARNING: no boundary checks!*/ |
| 322 | #define lock_set_get(set, i) lock_get(&set->locks[i]) |
no test coverage detected