James Kuszmaul | 82f6c04 | 2021-01-17 11:30:16 -0800 | [diff] [blame^] | 1 | /** |
2 | * @file re_lock.h Interface to locking functions | ||||
3 | * | ||||
4 | * Copyright (C) 2010 Creytiv.com | ||||
5 | */ | ||||
6 | |||||
7 | |||||
8 | struct lock; | ||||
9 | |||||
10 | int lock_alloc(struct lock **lp); | ||||
11 | |||||
12 | void lock_read_get(struct lock *l); | ||||
13 | void lock_write_get(struct lock *l); | ||||
14 | |||||
15 | int lock_read_try(struct lock *l); | ||||
16 | int lock_write_try(struct lock *l); | ||||
17 | |||||
18 | void lock_rel(struct lock *l); |